Skip to contentSkip to conversation

ktxnmgrd.c cleanup

PATCH Dushan Tcholich 1 participant 1 message Oct 25, 2007

lore
Share & tools
lore
#0 lore raw

orig: total: 8 errors, 2 warnings, 215 lines checked
patched:Your patch has no obvious style problems and is ready for submission.

ktxnmgrd.c renamed from ktxnmgrd.c.orig +7 -6
@@ -44,9 +44,9 @@ static int scan_mgr(struct super_block *
  * state. This serves no useful purpose whatsoever, but also costs nothing. May
  * be it will make lonely system administrator feeling less alone at 3 A.M.
  */
-#define set_comm( state ) 						\
-	snprintf( current -> comm, sizeof( current -> comm ),	\
-		  "%s:%s:%s", __FUNCTION__, (super)->s_id, ( state ) )
+#define set_comm(state) 						\
+	snprintf(current->comm, sizeof(current->comm),	\
+		  "%s:%s:%s", __FUNCTION__, (super)->s_id, (state))
 
 /**
  * ktxnmgrd - kernel txnmgr daemon
@@ -78,10 +78,11 @@ static int ktxnmgrd(void *arg)
 		{
 			DEFINE_WAIT(__wait);
 
-			prepare_to_wait(&ctx->wait, &__wait, TASK_INTERRUPTIBLE);
-			if (kthread_should_stop()) {
+			prepare_to_wait(&ctx->wait, &__wait,
+					TASK_INTERRUPTIBLE);
+			if (kthread_should_stop())
 				done = 1;
-			} else
+			else
 				schedule_timeout(ctx->timeout);
 			finish_wait(&ctx->wait, &__wait);
 		}