summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-08-02 04:54:14 +0000
committersam <sam@FreeBSD.org>2006-08-02 04:54:14 +0000
commitcc1945b5acdc3f692a25c20882facce45a641d78 (patch)
treef06ccaef79ed596a782434a761fedcc099f548d0 /sys/dev/ral
parentf2d57e8e8180fb83029a5d06df914b6f11e6a92e (diff)
downloadFreeBSD-src-cc1945b5acdc3f692a25c20882facce45a641d78.zip
FreeBSD-src-cc1945b5acdc3f692a25c20882facce45a641d78.tar.gz
remove unnecessary null ptr check
Coverity ID: 173911
Diffstat (limited to 'sys/dev/ral')
-rw-r--r--sys/dev/ral/rt2560.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ral/rt2560.c b/sys/dev/ral/rt2560.c
index f4266ff..ffa8356 100644
--- a/sys/dev/ral/rt2560.c
+++ b/sys/dev/ral/rt2560.c
@@ -2842,8 +2842,7 @@ rt2560_raw_xmit(struct ieee80211_node *ni, struct mbuf *m,
return 0;
bad:
ifp->if_oerrors++;
- if (ni != NULL)
- ieee80211_free_node(ni);
+ ieee80211_free_node(ni);
RAL_UNLOCK(sc);
return EIO; /* XXX */
}
OpenPOWER on IntegriCloud