提交 b78d28a2 编写于 作者: I Ira Weiny 提交者: Doug Ledford

IB/mad: Clean up comments in smi.c

Return values of 0 do not make sense for functions which return enum
smi_action
Reviewed-By: NJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Acked-by: NSean Hefty <sean.hefty@intel.com>
Signed-off-by: NIra Weiny <ira.weiny@intel.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 c597eee5
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
/* /*
* Fixup a directed route SMP for sending * 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, enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp,
u8 node_type, int port_num) u8 node_type, int port_num)
...@@ -126,7 +126,7 @@ enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp, ...@@ -126,7 +126,7 @@ enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp,
/* /*
* Adjust information for a received 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, enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, u8 node_type,
int port_num, int phys_port_cnt) int port_num, int phys_port_cnt)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册