Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1403218

[PATCH 1/1] net: pegasus: simplify logical constraint

From Heinrich Schuchardt <xypron.glpk@gmx.de>
Newsgroups linux.kernel
Subject [PATCH 1/1] net: pegasus: simplify logical constraint
Date 2016-05-18 20:50 +0200
Message-ID <rAeHD-5LI-5@gated-at.bofh.it> (permalink)
References <rA3VT-7ii-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


If !count is true, count < 4 is also true.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 drivers/net/usb/pegasus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c
index 36cd7f0..9bbe0161 100644
--- a/drivers/net/usb/pegasus.c
+++ b/drivers/net/usb/pegasus.c
@@ -473,7 +473,7 @@ static void read_bulk_callback(struct urb *urb)
 		goto goon;
 	}
 
-	if (!count || count < 4)
+	if (count < 4)
 		goto goon;
 
 	rx_status = buf[count - 2];
-- 
2.1.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] net: pegasus: remove dead coding Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-05-18 02:20 +0200
  Re: [PATCH 1/1] net: pegasus: remove dead coding Petko Manolov <petkan@mip-labs.com> - 2016-05-18 08:30 +0200
  Re: [1/1] net: pegasus: remove dead coding Guenter Roeck <linux@roeck-us.net> - 2016-05-18 08:40 +0200
    Re: [1/1] net: pegasus: remove dead coding Oliver Neukum <oneukum@suse.com> - 2016-05-18 09:20 +0200
      Re: [1/1] net: pegasus: remove dead coding Petko Manolov <petkan@mip-labs.com> - 2016-05-18 10:00 +0200
      [PATCH 1/1] net: pegasus: simplify logical constraint Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-05-18 20:50 +0200
        Re: [PATCH 1/1] net: pegasus: simplify logical constraint Petko Manolov <petkan@mip-labs.com> - 2016-05-19 08:00 +0200
        Re: [PATCH 1/1] net: pegasus: simplify logical constraint David Miller <davem@davemloft.net> - 2016-05-23 22:50 +0200
  Re: [PATCH 1/1] net: pegasus: remove dead coding David Miller <davem@davemloft.net> - 2016-05-19 20:40 +0200
    Re: [PATCH 1/1] net: pegasus: remove dead coding Petko Manolov <petkan@mip-labs.com> - 2016-05-20 09:40 +0200
      Re: [PATCH 1/1] net: pegasus: remove dead coding David Miller <davem@davemloft.net> - 2016-05-20 18:40 +0200

csiph-web