aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/i4l
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-05-16 16:51:02 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-17 04:47:50 -0400
commit1f352920b908247273a7c1937fd8c341cc1cedb1 (patch)
tree67917c24bcb58bb5217cfc30e523ab7a546aae7d /drivers/isdn/i4l
parenta4ca44fa578c7c7fd123b7fba3c2c98d4ba4e53d (diff)
isdn: remove duplicate NULL check
We test both "!skb_out" and "skb_out" here which is duplicative and causes a static checker warning. I considered that the intent might have been to test "skb_in" but that's a valid pointer here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/i4l')
-rw-r--r--drivers/isdn/i4l/isdn_bsdcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_bsdcomp.c b/drivers/isdn/i4l/isdn_bsdcomp.c
index c59e8d2c0675..8837ac5a492d 100644
--- a/drivers/isdn/i4l/isdn_bsdcomp.c
+++ b/drivers/isdn/i4l/isdn_bsdcomp.c
@@ -612,7 +612,7 @@ static int bsd_compress(void *state, struct sk_buff *skb_in, struct sk_buff *skb
612 db->n_bits++; 612 db->n_bits++;
613 613
614 /* If output length is too large then this is an incompressible frame. */ 614 /* If output length is too large then this is an incompressible frame. */
615 if (!skb_out || (skb_out && skb_out->len >= skb_in->len)) { 615 if (!skb_out || skb_out->len >= skb_in->len) {
616 ++db->incomp_count; 616 ++db->incomp_count;
617 db->incomp_bytes += isize; 617 db->incomp_bytes += isize;
618 return 0; 618 return 0;