]> err.no Git - linux-2.6/commitdiff
trivial: small cleanups
authorPavel Machek <pavel@suse.cz>
Mon, 21 Apr 2008 22:15:06 +0000 (22:15 +0000)
committerJesper Juhl <juhl@hera.kernel.org>
Mon, 21 Apr 2008 22:15:06 +0000 (22:15 +0000)
These are small cleanups all over the tree.

Trivial style and comment changes to
  fs/select.c, kernel/signal.c, kernel/stop_machine.c & mm/pdflush.c

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
fs/select.c
kernel/signal.c
kernel/stop_machine.c
mm/pdflush.c

index 5633fe98078179b472a878c444594c4628dbde28..00f58c5c7e05251ef4350e762481df8b07294212 100644 (file)
@@ -260,7 +260,7 @@ int do_select(int n, fd_set_bits *fds, s64 *timeout)
                wait = NULL;
                if (retval || !*timeout || signal_pending(current))
                        break;
-               if(table.error) {
+               if (table.error) {
                        retval = table.error;
                        break;
                }
index cc8303cd093dd5f05e7218b7f35d77d340bddc09..64ad0ed15992562a4b67da61e4b34746dc9c48c7 100644 (file)
@@ -220,7 +220,7 @@ void flush_signals(struct task_struct *t)
        unsigned long flags;
 
        spin_lock_irqsave(&t->sighand->siglock, flags);
-       clear_tsk_thread_flag(t,TIF_SIGPENDING);
+       clear_tsk_thread_flag(t, TIF_SIGPENDING);
        flush_sigqueue(&t->pending);
        flush_sigqueue(&t->signal->shared_pending);
        spin_unlock_irqrestore(&t->sighand->siglock, flags);
@@ -424,7 +424,7 @@ int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info)
        }
        if (signr &&
             ((info->si_code & __SI_MASK) == __SI_TIMER) &&
-            info->si_sys_private){
+            info->si_sys_private) {
                /*
                 * Release the siglock to ensure proper locking order
                 * of timer locks outside of siglocks.  Note, we leave
index 6f4e0e13f70c337c531be43b0d3cc5296c972c71..316283cb60cbb18c2b3a0abc761e856091c766ff 100644 (file)
@@ -135,8 +135,7 @@ static void restart_machine(void)
        preempt_enable_no_resched();
 }
 
-struct stop_machine_data
-{
+struct stop_machine_data {
        int (*fn)(void *);
        void *data;
        struct completion done;
index 8f6ee073c0e3f44a14a40fe1351006b1246e4523..3931f716454aaccc3259f74a0b9e308fe64101ee 100644 (file)
@@ -17,8 +17,8 @@
 #include <linux/gfp.h>
 #include <linux/init.h>
 #include <linux/module.h>
-#include <linux/fs.h>          // Needed by writeback.h
-#include <linux/writeback.h>   // Prototypes pdflush_operation()
+#include <linux/fs.h>          /* Needed by writeback.h          */
+#include <linux/writeback.h>   /* Prototypes pdflush_operation() */
 #include <linux/kthread.h>
 #include <linux/cpuset.h>
 #include <linux/freezer.h>