patch_name:	usblp_err_reports.patch
patch_version:	2003-06-14.21:46:07
author:		Randy.Dunlap <rddunlap@osdl.org>
description:	handle printer error bits independently
product:	Linux
product_versions: linux-2571
diffstat:	=
 drivers/usb/class/usblp.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


diff -Naur ./drivers/usb/class/usblp.c~errors ./drivers/usb/class/usblp.c
--- ./drivers/usb/class/usblp.c~errors	2003-06-14 12:17:59.000000000 -0700
+++ ./drivers/usb/class/usblp.c	2003-06-14 21:42:01.000000000 -0700
@@ -296,13 +296,13 @@
 	}
 
 	status = *usblp->statusbuf;
-	if (~status & LP_PERRORP) {
+
+	if (~status & LP_PERRORP)
 		newerr = 3;
-		if (status & LP_POUTPA)
-			newerr = 1;
-		if (~status & LP_PSELECD)
-			newerr = 2;
-	}
+	if (status & LP_POUTPA)
+		newerr = 1;
+	if (~status & LP_PSELECD)
+		newerr = 2;
 
 	if (newerr != err)
 		info("usblp%d: %s", usblp->minor, usblp_messages[newerr]);
