net-next/hinic: fix comparison of a uint16_t type with -1
authorAviad Krawczyk <aviad.krawczyk@huawei.com>
Sun, 27 Aug 2017 17:35:30 +0000 (01:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 23:44:39 +0000 (16:44 -0700)
commitcde66f24c3bf42123647c5233447c5790d92557f
tree28809dddabda507b001439cdea39613fddd90bcb
parent52f31422d462d1a0cb3ed3f2de7d9d34d1a6e46a
net-next/hinic: fix comparison of a uint16_t type with -1

Remove the search for index of constant buffer size

Signed-off-by: Aviad Krawczyk <aviad.krawczyk@huawei.com>
Signed-off-by: Zhao Chen <zhaochen6@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c
drivers/net/ethernet/huawei/hinic/hinic_hw_qp.h