svn commit: r300077 - head/sys/dev/mwl
Andriy Voskoboinyk
avos at FreeBSD.org
Tue May 17 20:53:57 UTC 2016
Author: avos
Date: Tue May 17 20:53:56 2016
New Revision: 300077
URL: https://svnweb.freebsd.org/changeset/base/300077
Log:
mwl: drop unneeded NULL pointer check.
mh_streams[] is a fixed-length array, not a pointer.
Modified:
head/sys/dev/mwl/mwlhal.c
Modified: head/sys/dev/mwl/mwlhal.c
==============================================================================
--- head/sys/dev/mwl/mwlhal.c Tue May 17 20:21:39 2016 (r300076)
+++ head/sys/dev/mwl/mwlhal.c Tue May 17 20:53:56 2016 (r300077)
@@ -1440,7 +1440,7 @@ mwl_hal_bastream_alloc(struct mwl_hal_va
sp->setup = 0;
sp->ba_policy = ba_policy;
MWL_HAL_UNLOCK(mh);
- return sp != NULL ? &sp->public : NULL;
+ return &sp->public;
}
const MWL_HAL_BASTREAM *
More information about the svn-src-head
mailing list