summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/esas2r/esas2r_init.c
diff options
context:
space:
mode:
authorBradley Grove <bgrove@attotech.com>2013-09-05 19:08:00 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-09-06 20:22:35 +0200
commit4079bc8b7d22c6ca24da7825c27c4b640ae61dc7 (patch)
treed451d3b184d7aba20ef9b7343a08cd0dd527fc3e /drivers/scsi/esas2r/esas2r_init.c
parent[SCSI] esas2r: coccinelle - Replace memcpy with struct assignment (diff)
downloadlinux-4079bc8b7d22c6ca24da7825c27c4b640ae61dc7.tar.xz
linux-4079bc8b7d22c6ca24da7825c27c4b640ae61dc7.zip
[SCSI] esas2r: Remove null test for stack allocated fw_coredump_buffer
Reported-by: Dave Jones <davej@redhat.com> Signed-off-by: Bradley Grove <bgrove@attotech.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/esas2r/esas2r_init.c')
-rw-r--r--drivers/scsi/esas2r/esas2r_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c
index 9aaad0d1dcf6..da1869df2408 100644
--- a/drivers/scsi/esas2r/esas2r_init.c
+++ b/drivers/scsi/esas2r/esas2r_init.c
@@ -1551,8 +1551,7 @@ void esas2r_reset_chip(struct esas2r_adapter *a)
* to not overwrite a previous crash that was saved.
*/
if ((a->flags2 & AF2_COREDUMP_AVAIL)
- && !(a->flags2 & AF2_COREDUMP_SAVED)
- && a->fw_coredump_buff) {
+ && !(a->flags2 & AF2_COREDUMP_SAVED)) {
esas2r_read_mem_block(a,
a->fw_coredump_buff,
MW_DATA_ADDR_SRAM + 0x80000,