diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2015-10-19 21:18:24 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-11-28 19:32:59 -0800 |
commit | 82a819e8fb5f36c2a0e14b92bc820225c484a387 (patch) | |
tree | 3c958b36c6bdeeea4953f58b2b8334d6cc617b57 /crypto | |
parent | 6ba4bd297d99ad522a6414001e6837ddaa8753fd (diff) | |
download | blackbird-obmc-linux-82a819e8fb5f36c2a0e14b92bc820225c484a387.tar.gz blackbird-obmc-linux-82a819e8fb5f36c2a0e14b92bc820225c484a387.zip |
iscsi-target: return -ENOMEM instead of -1 in case of failed kmalloc()
Smatch complains about returning hard coded error codes, silence this
warning.
drivers/target/iscsi/iscsi_target_parameters.c:211
iscsi_create_default_params() warn: returning -1 instead of -ENOMEM is sloppy
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions