mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
mlx4_core: return a negative error value
The return value should be negative. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c7cd606f60
commit
e0802793f6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue