scsi: ipr: Use kobj_to_dev()
authorMinghao Chi <chi.minghao@zte.com.cn>
Tue, 10 May 2022 10:51:13 +0000 (10:51 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 May 2022 01:32:16 +0000 (21:32 -0400)
commitaabd5fea49461c7b3a70d7aaa965e8cb3f19b7e7
treee1b510aa9b74cb83406c82c4a83e6c47e0eedb1c
parenta25eafd13e5f79d9bbada5a4a4a4224cc5f6d14c
scsi: ipr: Use kobj_to_dev()

Use kobj_to_dev() instead of open-coding it.

Link: https://lore.kernel.org/r/20220510105113.1351891-1-chi.minghao@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c