aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ppdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/ppdev.c')
-rw-r--r--drivers/char/ppdev.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c
index d0d824ebf2c1..1cd49241e60e 100644
--- a/drivers/char/ppdev.c
+++ b/drivers/char/ppdev.c
@@ -251,12 +251,8 @@ static ssize_t pp_write (struct file * file, const char __user * buf,
251 break; 251 break;
252 } 252 }
253 253
254 if (signal_pending (current)) { 254 if (signal_pending (current))
255 if (!bytes_written) {
256 bytes_written = -EINTR;
257 }
258 break; 255 break;
259 }
260 256
261 cond_resched(); 257 cond_resched();
262 } 258 }