Reduce or add spaces to clean up code style. Clean up comment style. No functional changes here. Signed-off-by: Xichao Zhao <zhao.xichao@xxxxxxxx> --- lib/raid6/recov_avx2.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lib/raid6/recov_avx2.c b/lib/raid6/recov_avx2.c index 97d598d2535c..9cfd0aff11e3 100644 --- a/lib/raid6/recov_avx2.c +++ b/lib/raid6/recov_avx2.c @@ -21,12 +21,14 @@ static void raid6_2data_recov_avx2(int disks, size_t bytes, int faila, const u8 *qmul; /* Q multiplier table (for both) */ const u8 x0f = 0x0f; - p = (u8 *)ptrs[disks-2]; - q = (u8 *)ptrs[disks-1]; - - /* Compute syndrome with zero for the missing data pages - Use the dead data pages as temporary storage for - delta p and delta q */ + p = (u8 *)ptrs[disks - 2]; + q = (u8 *)ptrs[disks - 1]; + + /* + * Compute syndrome with zero for the missing data pages + * Use the dead data pages as temporary storage for + * delta p and delta q + */ dp = (u8 *)ptrs[faila]; ptrs[faila] = raid6_get_zero_page(); ptrs[disks-2] = dp; @@ -190,20 +192,22 @@ static void raid6_datap_recov_avx2(int disks, size_t bytes, int faila, const u8 *qmul; /* Q multiplier table */ const u8 x0f = 0x0f; - p = (u8 *)ptrs[disks-2]; - q = (u8 *)ptrs[disks-1]; + p = (u8 *)ptrs[disks - 2]; + q = (u8 *)ptrs[disks - 1]; - /* Compute syndrome with zero for the missing data page - Use the dead data page as temporary storage for delta q */ + /* + * Compute syndrome with zero for the missing data page + * Use the dead data page as temporary storage for delta q + */ dq = (u8 *)ptrs[faila]; ptrs[faila] = raid6_get_zero_page(); - ptrs[disks-1] = dq; + ptrs[disks - 1] = dq; raid6_call.gen_syndrome(disks, bytes, ptrs); /* Restore pointer table */ ptrs[faila] = dq; - ptrs[disks-1] = q; + ptrs[disks - 1] = q; /* Now, pick the proper data tables */ qmul = raid6_vgfmul[raid6_gfinv[raid6_gfexp[faila]]]; -- 2.34.1