]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: ufs-exynos: Remove an unnecessary NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 26 Jun 2020 10:51:33 +0000 (13:51 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 30 Jun 2020 01:33:20 +0000 (21:33 -0400)
commitec0394862960eca70a45231d77fb512a2447268b
treef4c07586492d8e5432bfbc8e6a07a0a90b1b9bbf
parent7f9ac8b00cbdced4681ca25191deaf1b2583c87a
scsi: ufs: ufs-exynos: Remove an unnecessary NULL check

The "head" pointer can't be NULL because it points to an address in the
middle of a ufs_hba struct.  Looking at this code, probably someone would
wonder if the intent was to check whether "hba" is NULL, but "hba" isn't
NULL and the check can just be removed.

Link: https://lore.kernel.org/r/20200626105133.GF314359@mwanda
Acked-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-exynos.c