]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[hermon] Fix hermon_cmd_sense_port() to use inline output
authorItay Gazit <itaygazit@gmail.com>
Thu, 28 Oct 2010 13:53:53 +0000 (15:53 +0200)
committerMichael Brown <mcb30@ipxe.org>
Thu, 17 Feb 2011 01:25:08 +0000 (01:25 +0000)
Signed-off-by: Itay Gazit <itaygazit@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c

index 6e3955af773c168d338482d1b45eeee65d9b6b69..cba92cefec27ee19a8d417703c9b47a915faed11 100644 (file)
@@ -509,9 +509,9 @@ static inline int
 hermon_cmd_sense_port ( struct hermon *hermon, unsigned int port,
                        struct hermonprm_sense_port *port_type ) {
        return hermon_cmd ( hermon,
-                            HERMON_HCR_OUT_CMD ( HERMON_HCR_SENSE_PORT,
-                                                 1, sizeof ( *port_type ) ),
-                            0, NULL, port, port_type );
+                           HERMON_HCR_OUT_CMD ( HERMON_HCR_SENSE_PORT,
+                                                0, sizeof ( *port_type ) ),
+                           0, NULL, port, port_type );
 }
 
 static inline int