summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorKarthik Nishanth <nishanthkarthik@live.com>2018-09-22 14:23:54 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-25 20:51:33 +0200
commitf986978b32b30a6489de8d3ffa36bbc8b0ee2675 (patch)
tree0541ab2aed27f2b6d435bac6d98373a4e1bea5a9 /tools/perf/scripts
parentf007d901f2e8805c7a8442fa05a324460fe13ed8 (diff)
downloadkernel-f986978b32b30a6489de8d3ffa36bbc8b0ee2675.tar.gz
Staging: rtlwifi: remove unnecessary NULL check
The member regd of the struct rtl_priv is true in a boolean context. drivers/staging/rtlwifi/regd.c:413:27: warning: address of 'rtlpriv->regd' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!wiphy || !&rtlpriv->regd) ~ ~~~~~~~~~^~~~ 1 warning generated. Link: https://github.com/ClangBuiltLinux/linux/issues/170 Signed-off-by: Karthik Nishanth <nishanthkarthik@live.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions