Content-Type: multipart/mixed; boundary="===============1327169706211294453==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] scsi: ufs: fix itnull.cocci warnings Date: Thu, 29 Apr 2021 22:53:50 +0200 Message-ID: List-Id: --===============1327169706211294453== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot The entry should not be NULL, so drop the NULL test. Generated by: scripts/coccinelle/iterators/itnull.cocci CC: Daejun Park Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Daejun-Park/scsi-ufs-Intro= duce-HPB-feature/20210428-155927 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-ne= xt :::::: branch date: 18 hours ago :::::: commit date: 18 hours ago ufshpb.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/scsi/ufs/ufshpb.c +++ b/drivers/scsi/ufs/ufshpb.c @@ -403,12 +403,6 @@ static struct ufshpb_region *ufshpb_vict struct ufshpb_region *rgn, *victim_rgn =3D NULL; list_for_each_entry(rgn, &lru_info->lh_lru_rgn, list_lru_rgn) { - if (!rgn) { - dev_err(&hpb->sdev_ufs_lu->sdev_dev, - "%s: no region allocated\n", - __func__); - return NULL; - } if (ufshpb_check_srgns_issue_state(hpb, rgn)) continue; --===============1327169706211294453==--