diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-10-28 22:53:13 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-28 22:53:13 +0200 |
commit | b4558ea93d66a43f7990d26f145fd4c54a01c9bf (patch) | |
tree | 70aa8ba4864f8ee994b7f5278f5045af6a646d34 /include/net/ax25.h | |
parent | sis900: come alive after temporary memory shortage (diff) | |
download | linux-b4558ea93d66a43f7990d26f145fd4c54a01c9bf.tar.xz linux-b4558ea93d66a43f7990d26f145fd4c54a01c9bf.zip |
drivers/net: Remove pointless checks for NULL prior to calling kfree()
Diffstat (limited to 'include/net/ax25.h')
-rw-r--r-- | include/net/ax25.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 30bb4a893237..2250a18b0cbb 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h @@ -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); } } |