Skip to contentSkip to conversation

part 1 - IPMI style cleanups

PATCH New Corey Minyard 1 participant 1 message Sep 1, 2005 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 part 1 - IPMI style cleanups

Clean up various style issues in the IPMI driver. Should be no functional changes.

drivers/char/ipmi/ipmi_poweroff.c +1 -1
Index: linux-2.6.13/drivers/char/ipmi/ipmi_poweroff.c
===================================================================
@@ -527,7 +527,7 @@ static void ipmi_po_new_smi(int if_num)
 
 
 	/* Scan for a poweroff method */
-	for (i=0; i<NUM_PO_FUNCS; i++) {
+	for (i = 0; i < NUM_PO_FUNCS; i++) {
 		if (poweroff_functions[i].detect(ipmi_user))
 			goto found;
 	}
drivers/char/ipmi/ipmi_watchdog.c +9 -10
Index: linux-2.6.13/drivers/char/ipmi/ipmi_watchdog.c
===================================================================
@@ -657,19 +657,18 @@ static ssize_t ipmi_read(struct file *fi
 
 static int ipmi_open(struct inode *ino, struct file *filep)
 {
-        switch (iminor(ino))
-        {
-                case WATCHDOG_MINOR:
-		    if(test_and_set_bit(0, &ipmi_wdog_open))
+        switch (iminor(ino)) {
+        case WATCHDOG_MINOR:
+		if (test_and_set_bit(0, &ipmi_wdog_open))
                         return -EBUSY;
 
-		    /* Don't start the timer now, let it start on the
-		       first heartbeat. */
-		    ipmi_start_timer_on_heartbeat = 1;
-                    return nonseekable_open(ino, filep);
+		/* Don't start the timer now, let it start on the
+		   first heartbeat. */
+		ipmi_start_timer_on_heartbeat = 1;
+		return nonseekable_open(ino, filep);
 
-                default:
-                    return (-ENODEV);
+	default:
+		return (-ENODEV);
         }
 }
 
drivers/char/ipmi/ipmi_msghandler.c +23 -23

177 lines not on this page · raw message

drivers/char/ipmi/ipmi_si_intf.c +69 -68

428 lines not on this page · raw message

drivers/char/ipmi/ipmi_bt_sm.c +44 -22

178 lines not on this page · raw message