Skip to content

Commit 1f35292

Browse files
Dan Carpenterdavem330
authored andcommitted
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>
1 parent a4ca44f commit 1f35292

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/isdn/i4l/isdn_bsdcomp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ static int bsd_compress(void *state, struct sk_buff *skb_in, struct sk_buff *skb
612612
db->n_bits++;
613613

614614
/* 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) {
616616
++db->incomp_count;
617617
db->incomp_bytes += isize;
618618
return 0;

0 commit comments

Comments
 (0)