X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fax25%2Fax25_in.c;h=4cf87540fb3abd79df222319a9c79e3dc09f2e3d;hb=fbbde0c30943306ddb77d969df6be68ebc6dc265;hp=73cfc3411c461d50d7dbb7d718dd3e2315d26428;hpb=312f5726055534be1dc9dd369be13aabd2943fcb;p=powerpc.git diff --git a/net/ax25/ax25_in.c b/net/ax25/ax25_in.c index 73cfc3411c..4cf87540fb 100644 --- a/net/ax25/ax25_in.c +++ b/net/ax25/ax25_in.c @@ -401,10 +401,8 @@ static int ax25_rcv(struct sk_buff *skb, struct net_device *dev, } if (dp.ndigi == 0) { - if (ax25->digipeat != NULL) { - kfree(ax25->digipeat); - ax25->digipeat = NULL; - } + kfree(ax25->digipeat); + ax25->digipeat = NULL; } else { /* Reverse the source SABM's path */ memcpy(ax25->digipeat, &reverse_dp, sizeof(ax25_digi));