diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-04-12 11:40:39 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-04-27 18:39:53 -0400 |
commit | f7854c382240c1686900b2f098b36430c6f5047e (patch) | |
tree | 0e5188d14368c652e8a59801099a85b09cbedf71 /drivers/scsi/sr.c | |
parent | f371d53453772bcbb9ac2201029b66281f713c07 (diff) | |
download | linux-f7854c382240c1686900b2f098b36430c6f5047e.tar.gz |
scsi: aacraid: Fix error handling paths in aac_probe_one()
If 'scsi_host_alloc()' or 'kcalloc()' fail, 'error' is known to be 0. Set
it explicitly to -ENOMEM before branching to the error handling path.
While at it, remove 2 useless assignments to 'error'. These values are
overwridden a few lines later.
Link: https://lore.kernel.org/r/20200412094039.8822-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sr.c')
0 files changed, 0 insertions, 0 deletions