RDMA/nes: Cleanup warnings
authorChien Tung <chien.tin.tung@intel.com>
Sat, 22 Nov 2008 02:51:01 +0000 (20:51 -0600)
committerRoland Dreier <rolandd@cisco.com>
Fri, 5 Dec 2008 19:00:41 +0000 (11:00 -0800)
commit6098d107499e1335f899bfcb558253fb7ee4f73f
tree91887e03690c253ff5c591d5f95439c03fe113c1
parent1ee86555b2ad4d16a3c18253b7e4d70d34eb94f3
RDMA/nes: Cleanup warnings

Wrap NES_DEBUG and assert macros with do while (0) to avoid ambiguous
else.  No one is using sk_buff * returned from form_cm_frame(), so
drop the return.  drop_packet() should not be incrementing reset
counter on receiving a FIN.

Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes.h
drivers/infiniband/hw/nes/nes_cm.c