From: Dolev Raviv Date: Thu, 23 Oct 2014 10:25:14 +0000 (+0300) Subject: scsi: ufs: fix static checker errors in ufshcd_system_suspend X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~54^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=233b594bdf6d846f03816eec1c19ccbd7e4618c0;p=pandora-kernel.git scsi: ufs: fix static checker errors in ufshcd_system_suspend This patch fixes newly introduced sparse warning in ufshcd_system_suspend, introduced by UFS power management series. Sparse warning: drivers/scsi/ufs/ufshcd.c:5118 ufshcd_system_suspend() error: we previously assumed 'hba' could be null (see line 5089) To fix it, we return 0 in case HBA is not initialized or is not powered. Signed-off-by: Dolev Raviv Reviewed-by: Maya Erez Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed