diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-03-08 01:28:28 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-08 03:32:00 +0100 |
commit | 488cf83380b72270b70a80de1eaff53899b1febb (patch) | |
tree | 12ad3bc9bc39037557f18d45ecad3d8cf33a40c3 /block/badblocks.c | |
parent | lib/assoc_array.c: mark expected switch fall-through (diff) | |
download | linux-488cf83380b72270b70a80de1eaff53899b1febb.tar.xz linux-488cf83380b72270b70a80de1eaff53899b1febb.zip |
lib/test_firmware.c: remove some dead code
The test_fw_config->reqs allocation succeeded so these addresses can't
be NULL.
Also on the second error path, we forgot to set "rc = -ENOMEM;".
Link: http://lkml.kernel.org/r/20190221183700.GA1737@kadam
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: "Luis R. Rodriguez" <mcgrof@kernel.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/badblocks.c')
0 files changed, 0 insertions, 0 deletions