projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7cd606
)
mlx4_core: return a negative error value
author
roel kluin
<roel.kluin@gmail.com>
Sat, 12 Dec 2009 09:09:05 +0000
(09:09 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 Dec 2009 03:47:42 +0000
(19:47 -0800)
The return value should be negative.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/sense.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/sense.c
b/drivers/net/mlx4/sense.c
index f36ae691cab3c343091fb7130591c8737ab4afee..015fbe785c13304aab333759a4629250b531b8d9 100644
(file)
--- a/
drivers/net/mlx4/sense.c
+++ b/
drivers/net/mlx4/sense.c
@@
-53,7
+53,7
@@
static int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port,
if (out_param > 2) {
mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param);
- return EINVAL;
+ return
-
EINVAL;
}
*type = out_param;