scsi: zfcp: Use list_first_entry_or_null() in zfcp_erp_thread()
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 10 Sep 2020 19:49:15 +0000 (21:49 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Sep 2020 22:01:57 +0000 (18:01 -0400)
commitaddf1372961523cc8cb7ab4ee26d5e1373bf64a0
tree59642047f4fb198438af026d0ce70d65dd938199
parent3f4fee002b009ce862067cf22e7f530deaa0b0a7
scsi: zfcp: Use list_first_entry_or_null() in zfcp_erp_thread()

Use the right helper to avoid poking around in the list's internals.

Link: https://lore.kernel.org/r/ed669555c73aab95b29444c10066f492c0c43391.1599765652.git.bblock@linux.ibm.com
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/s390/scsi/zfcp_erp.c