diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2023-04-18 23:42:56 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-05-08 07:19:20 -0400 |
commit | 2a954832015df3dc4266f73bed1b3c8b4cb9919b (patch) | |
tree | 0f6b47d414af5feb0c60c49ef2bfb0f51f50f045 /drivers/ufs/core/ufshcd.c | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) | |
download | linux-stable-2a954832015df3dc4266f73bed1b3c8b4cb9919b.tar.gz linux-stable-2a954832015df3dc4266f73bed1b3c8b4cb9919b.tar.bz2 linux-stable-2a954832015df3dc4266f73bed1b3c8b4cb9919b.zip |
scsi: mpi3mr: Use -ENOMEM instead of -1 in mpi3mr_expander_add()
smatch warnings:
drivers/scsi/mpi3mr/mpi3mr_transport.c:1449 mpi3mr_expander_add() warn:
returning -1 instead of -ENOMEM is sloppy
No functional change.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/202303202027.ZeDQE5Ug-lkp@intel.com/
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://lore.kernel.org/r/20230419064256.2532069-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/core/ufshcd.c')
0 files changed, 0 insertions, 0 deletions