All of lore.kernel.org
 help / color / mirror / Atom feed
* Using existing function instead statement
@ 2012-02-03  6:46 majianpeng
  0 siblings, 0 replies; only message in thread
From: majianpeng @ 2012-02-03  6:46 UTC (permalink / raw)
  To: linuxppc-dev

>From 53bcbc301e72ed951f67abb6428199e7edfccc16 Mon Sep 17 00:00:00 2001
From: majianpeng <majianpeng@gmail.com>
Date: Fri, 3 Feb 2012 14:35:59 +0000
Subject: [PATCH] Using existing function instead statement.


Signed-off-by: majianpeng <majianpeng@gmail.com>
---
 drivers/macintosh/adb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c
index 75049e7..b026896 100644
--- a/drivers/macintosh/adb.c
+++ b/drivers/macintosh/adb.c
@@ -710,7 +710,7 @@ static ssize_t adb_read(struct file *file, char __user *buf,
 	req = NULL;
 	spin_lock_irqsave(&state->lock, flags);
 	add_wait_queue(&state->wait_queue, &wait);
-	current->state = TASK_INTERRUPTIBLE;
+	set_current_state(TASK_INTERRUPTIBLE);
 
 	for (;;) {
 		req = state->completed;
@@ -734,7 +734,7 @@ static ssize_t adb_read(struct file *file, char __user *buf,
 		spin_lock_irqsave(&state->lock, flags);
 	}
 
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&state->wait_queue, &wait);
 	spin_unlock_irqrestore(&state->lock, flags);
 	
-- 
1.7.3

 				
--------------
majianpeng
2012-02-03

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-03  6:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03  6:46 Using existing function instead statement majianpeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.