Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d0c3d4f authored by Alan Cox's avatar Alan Cox Committed by Jiri Kosina
Browse files

parport: dead code in pp_write



We always update bytes_written before we check signal_pending so it
follows that we can't get a signal return for 0 bytes so we don't
need to check in the singal path. The cases a signal causes an earlier
abort are handled before this and will not hit this path

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 1b61810d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -251,12 +251,8 @@ static ssize_t pp_write (struct file * file, const char __user * buf,
			break;
		}

		if (signal_pending (current)) {
			if (!bytes_written) {
				bytes_written = -EINTR;
			}
		if (signal_pending (current))
			break;
		}

		cond_resched();
	}