]> git.karo-electronics.de Git - linux-beck.git/commitdiff
IB/mad: Clean up comments in smi.c
authorIra Weiny <ira.weiny@intel.com>
Fri, 8 May 2015 17:10:04 +0000 (13:10 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 17:35:24 +0000 (13:35 -0400)
Return values of 0 do not make sense for functions which return enum
smi_action

Reviewed-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/smi.c

index 5855e4405d9bf2ca2b04a0fac5aebabed46c538b..e6c6810c8c41dd280e0b8eba7331abb848b7dd09 100644 (file)
@@ -41,7 +41,7 @@
 
 /*
  * Fixup a directed route SMP for sending
- * Return 0 if the SMP should be discarded
+ * Return IB_SMI_DISCARD if the SMP should be discarded
  */
 enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp,
                                       u8 node_type, int port_num)
@@ -126,7 +126,7 @@ enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp,
 
 /*
  * Adjust information for a received SMP
- * Return 0 if the SMP should be dropped
+ * Return IB_SMI_DISCARD if the SMP should be dropped
  */
 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, u8 node_type,
                                       int port_num, int phys_port_cnt)