]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wlan-ng: remove unused declarations from p80211types.h
authorTim Collier <osdevtc@gmail.com>
Fri, 25 May 2018 17:40:40 +0000 (18:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 May 2018 17:00:53 +0000 (19:00 +0200)
commit96ebb62fa44a8cd42e4352a4ae75618e38f264bd
treee7399d279ccfcd356ba3b8483371a67990c7c45a
parentd0e891e684c46b3b77209832fe2b1284d895ac92
staging: wlan-ng: remove unused declarations from p80211types.h

A number of extern struct declarations in p80211types.h were causing
checkpatch warnings: "extern prototypes should be avoided in .h files"
and "function definition argument 'xxxxxx' should also have an
identifier name".

This appears to be a result of using a macro to form the declarations
and checkpatch consequently misinterpreting the declarations as
function prototypes.

On checking, the declarations have no corresponding definition in the
driver and are not used, so they are removed along with the macro used
to construct them, which is not needed elsewhere. After this change,
checkpatch reports that p80211types.h has no obvious issues.

Signed-off-by: Tim Collier <osdevtc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211types.h