scsi: esas2r: Remove redundant NULL check on buffer
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Mar 2017 16:46:24 +0000 (16:46 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 16 Mar 2017 23:49:45 +0000 (19:49 -0400)
commit33bd712be7d2e3bd60262957052abc19c71c4765
treed4c431fa29a47a9b0c147615dc02e57f37201ccc
parentba21222d00a450ce3bfced0e047f52470372634d
scsi: esas2r: Remove redundant NULL check on buffer

Buffer is a pointer to the static char array event_buffer and therefore
can never be null, so the check is redundant. Remove it.

Detected by CoverityScan, CID#1077556 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esas2r/esas2r_log.c