Commit b063e37
mm/memory.c: avoid unnecessary kernel/user pointer conversion
Annotating a pointer from __user to kernel and then back again might
confuse sparse. In copy_huge_page_from_user() it can be avoided by
removing the intermediate variable since it is never used.
Link: https://lkml.kernel.org/r/20210914150820.19326-1-amit.kachhap@arm.com
Signed-off-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Vincenzo Frascino <Vincenzo.Frascino@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent f1dc0db commit b063e37
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5421 | 5421 | | |
5422 | 5422 | | |
5423 | 5423 | | |
5424 | | - | |
5425 | 5424 | | |
5426 | 5425 | | |
5427 | 5426 | | |
| |||
5434 | 5433 | | |
5435 | 5434 | | |
5436 | 5435 | | |
5437 | | - | |
5438 | | - | |
| 5436 | + | |
5439 | 5437 | | |
5440 | 5438 | | |
5441 | 5439 | | |
| |||
0 commit comments