diff options
author | Bradley Grove <bgrove@attotech.com> | 2013-09-05 13:08:00 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-06 14:22:35 -0400 |
commit | 4079bc8b7d22c6ca24da7825c27c4b640ae61dc7 (patch) | |
tree | d451d3b184d7aba20ef9b7343a08cd0dd527fc3e | |
parent | ef11851b34b3a6b91b7d09b4711a10a0ad39c316 (diff) |
[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>
-rw-r--r-- | drivers/scsi/esas2r/esas2r_init.c | 3 |
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) | |||
1551 | * to not overwrite a previous crash that was saved. | 1551 | * to not overwrite a previous crash that was saved. |
1552 | */ | 1552 | */ |
1553 | if ((a->flags2 & AF2_COREDUMP_AVAIL) | 1553 | if ((a->flags2 & AF2_COREDUMP_AVAIL) |
1554 | && !(a->flags2 & AF2_COREDUMP_SAVED) | 1554 | && !(a->flags2 & AF2_COREDUMP_SAVED)) { |
1555 | && a->fw_coredump_buff) { | ||
1556 | esas2r_read_mem_block(a, | 1555 | esas2r_read_mem_block(a, |
1557 | a->fw_coredump_buff, | 1556 | a->fw_coredump_buff, |
1558 | MW_DATA_ADDR_SRAM + 0x80000, | 1557 | MW_DATA_ADDR_SRAM + 0x80000, |