summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2015-05-26 03:49:45 +0300
committerDavid S. Miller <davem@davemloft.net>2015-05-28 20:14:45 -0700
commitd7a32b6e6b1ad361ea89805855ef82dd1dea9128 (patch)
treedf7f67f44ad0a9538d714e88c8da8fca68d38f5c /net/xfrm
parent5538d294dd6661de27b567fe69b597c99cb54cdd (diff)
downloadop-kernel-dev-d7a32b6e6b1ad361ea89805855ef82dd1dea9128.zip
op-kernel-dev-d7a32b6e6b1ad361ea89805855ef82dd1dea9128.tar.gz
net: qlcnic: clean up sysfs error codes
Replace confusing QL_STATUS_INVALID_PARAM == -1 == -EPERM with -EINVAL and QLC_STATUS_UNSUPPORTED_CMD == -2 == -ENOENT with -EOPNOTSUPP, the latter error code is arguable, but it is already used in the driver, so let it be here as well. Also remove always false (!buf) check on read(), the driver should not care if userspace gets its EFAULT or not. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Acked-by: Rajesh Borundia <rajesh.borundia@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud