Date: Tue, 17 May 2016 20:53:56 +0000 (UTC) From: Andriy Voskoboinyk <avos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300077 - head/sys/dev/mwl Message-ID: <201605172053.u4HKrulS083924@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605172053.u4HKrulS083924>