Skip to contentSkip to conversation

lib-scatterlist-adjust-indentation-in-__sg_alloc_table.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 31, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/scatterlist.c: adjust indentation in __sg_alloc_table
has been removed from the -mm tree. Its filename was
lib-scatterlist-adjust-indentation-in-__sg_alloc_table.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Nathan Chancellor <[email protected]>
Subject: lib/scatterlist.c: adjust indentation in __sg_alloc_table

Clang warns:

../lib/scatterlist.c:314:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]

                        return -ENOMEM;
                        ^
../lib/scatterlist.c:311:4: note: previous statement is here
                        if (prv)
                        ^

1 warning generated.

This warning occurs because there is a space before the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns.

---

 lib/scatterlist.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/scatterlist.c renamed from lib/scatterlist.c~lib-scatterlist-adjust-indentation-in-__sg_alloc_table +1 -1
@@ -311,7 +311,7 @@ int __sg_alloc_table(struct sg_table *ta
 			if (prv)
 				table->nents = ++table->orig_nents;
 
- 			return -ENOMEM;
+			return -ENOMEM;
 		}
 
 		sg_init_table(sg, alloc_size);

_

Patches currently in -mm which might be from [email protected] are

ipc-consolidate-all-xxxctl_down-functions-fix.patch