scsi: ufs: remove unnecessary pointer evaluation
authorZeng Guangyue <zengguangyue@hisilicon.com>
Sat, 30 Mar 2019 09:03:13 +0000 (17:03 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:45:59 +0000 (23:45 -0400)
commit60b7b823fb4158d89e5d4ca798c219bd97639a73
treecb62f3ec1514f9c051e72c3823057143b790d85a
parent6087550338ad03f369eaddc1b995c0751a0a68ab
scsi: ufs: remove unnecessary pointer evaluation

The pointer value is initialized as &hba->vreg_info, and it's never
changed. It's not necessary to check the pointer is null or not.

Signed-off-by: Zeng Guangyue <zengguangyue@hisilicon.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c