]> git.baikalelectronics.ru Git - kernel.git/commit
lib/test_kmod.c: remove a NULL test
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Apr 2020 03:10:35 +0000 (20:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:43 +0000 (10:43 -0700)
commit7d18e58fdc2863cdfd7c747df3e41815ceec2a64
treef152f5ddef91eeb3eb30a24f3f2e81d118da99dd
parent866211e510b3a52580131f5251b6962e85fc245e
lib/test_kmod.c: remove a NULL test

The "info" pointer has already been dereferenced so checking here is too
late.  Fortunately, we never pass NULL pointers to the
test_kmod_put_module() function so the test can simply be removed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Link: http://lkml.kernel.org/r/20200228092452.vwkhthsn77nrxdy6@kili.mountain
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_kmod.c