mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
drivers/net: Remove pointless checks for NULL prior to calling kfree()
This commit is contained in:
parent
7380a78a97
commit
b4558ea93d
32 changed files with 90 additions and 174 deletions
|
@ -237,8 +237,7 @@ typedef struct ax25_cb {
|
|||
static __inline__ void ax25_cb_put(ax25_cb *ax25)
|
||||
{
|
||||
if (atomic_dec_and_test(&ax25->refcount)) {
|
||||
if (ax25->digipeat)
|
||||
kfree(ax25->digipeat);
|
||||
kfree(ax25->digipeat);
|
||||
kfree(ax25);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue