]> git.baikalelectronics.ru Git - kernel.git/commit
IB/cxgb4: Fix if statement in pick_local_ip6adddrs
authorNicholas Krause <xerofoify@gmail.com>
Thu, 27 Aug 2015 03:00:59 +0000 (23:00 -0400)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Sep 2015 18:03:59 +0000 (14:03 -0400)
commit7eaeb09aac08db619d28e6a17493b6a927ce110a
treed4101b1bb979c185d9eb919b39b55413be28f8af
parentf46caec3f05f7b828f422c1adfeb9dcb05c7329e
IB/cxgb4: Fix if statement in pick_local_ip6adddrs

This fixes an if statement checking the return value of the function
get_lladdr for success in the function pick_local_ip6addrs to instead
of directly checking the return value of this call check the opposite
as get_lladdr returns zero for success which would incorrectly make
this if statement block not execute with the current if statement
check.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c