]> git.baikalelectronics.ru Git - kernel.git/commit
mm/shmem.c: clean code by removing unnecessary assignment
authorMateusz Nosek <mateusznosek0@gmail.com>
Tue, 7 Apr 2020 03:07:54 +0000 (20:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:41 +0000 (10:43 -0700)
commit04d4b5f038c0e5260820e4aa0bd8ec66a1db7600
tree926103b3d5c1d0e30238d46aa0b7afb14ba8e599
parent977479070839ea2bce860ea7da48f466c6bf0535
mm/shmem.c: clean code by removing unnecessary assignment

Previously 0 was assigned to variable 'error' but the variable was never
read before reassignemnt later.  So the assignment can be removed.

Signed-off-by: Mateusz Nosek <mateusznosek0@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Link: http://lkml.kernel.org/r/20200301152832.24595-1-mateusznosek0@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c