commit | 82a819e8fb5f36c2a0e14b92bc820225c484a387 | [log] [tgz] |
---|---|---|
author | Luis de Bethencourt <luisbg@osg.samsung.com> | Mon Oct 19 21:18:24 2015 +0100 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Sat Nov 28 19:32:59 2015 -0800 |
tree | 3c958b36c6bdeeea4953f58b2b8334d6cc617b57 | |
parent | 6ba4bd297d99ad522a6414001e6837ddaa8753fd [diff] |
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>