mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 07:30:06 -04:00
staging/lustre/libcfs: Get rid of multiple assignments
They make checkpatch unhappy, and I guess overall might confuse people too. Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4a44ab6848
commit
34ec7f895a
@@ -82,9 +82,10 @@ cfs_percpt_alloc(struct cfs_cpt_table *cptab, unsigned int size)
|
||||
if (!arr)
|
||||
return NULL;
|
||||
|
||||
arr->va_size = size = L1_CACHE_ALIGN(size);
|
||||
arr->va_count = count;
|
||||
arr->va_cptab = cptab;
|
||||
size = L1_CACHE_ALIGN(size);
|
||||
arr->va_size = size;
|
||||
arr->va_count = count;
|
||||
arr->va_cptab = cptab;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
LIBCFS_CPT_ALLOC(arr->va_ptrs[i], cptab, i, size);
|
||||
|
||||
@@ -337,8 +337,10 @@ cfs_range_expr_print(char *buffer, int count, struct cfs_range_expr *expr,
|
||||
char s[] = "[";
|
||||
char e[] = "]";
|
||||
|
||||
if (bracketed)
|
||||
s[0] = e[0] = '\0';
|
||||
if (bracketed) {
|
||||
s[0] = '\0';
|
||||
e[0] = '\0';
|
||||
}
|
||||
|
||||
if (expr->re_lo == expr->re_hi)
|
||||
i = scnprintf(buffer, count, "%u", expr->re_lo);
|
||||
|
||||
Reference in New Issue
Block a user