linux/drivers/staging/ks7010
Tobin C. Harding 08484ef419 staging: ks7010: remove magic numbers
Driver includes magic numbers. Defining constants or using existing
constants aids the readability of the code.

Magic number '12' is used for two ethernet addresses (6 bytes
each). ETH_ALEN is already defined within the kernel to 6. We can us
the expression '2 * ETH_ALEN' to make this code explicit.

Magic number '20' refers to the data size, in bytes, of a struct
ether_hdr (described in eap_packet.h). We can define a constant for
this purpose, making the code explicit and easier to read.

Define constant. Remove magic numbers, using newly defined constant
and/or expression using existing kernel constant.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-28 11:45:49 +02:00
..
eap_packet.h staging: ks7010: remove magic numbers 2017-04-28 11:45:49 +02:00
Kconfig staging: ks7010: remove custom firmware loader 2016-06-07 22:42:53 -07:00
ks7010_sdio.c staging: ks7010: fix checkpatch SPLIT_STRING 2017-04-18 13:47:31 +02:00
ks7010_sdio.h staging: ks7010: add struct comment to ks_sdio_card 2017-04-18 13:47:31 +02:00
ks_hostif.c staging: ks7010: remove magic numbers 2017-04-28 11:45:49 +02:00
ks_hostif.h staging: ks7010: fix complete_handler 2017-04-18 13:33:17 +02:00
ks_wlan_ioctl.h staging: ks7010: add parentheses to complex macro 2017-03-14 06:20:57 +08:00
ks_wlan_net.c staging: ks7010: fix complete_handler 2017-04-18 13:33:17 +02:00
ks_wlan.h staging: ks7010: move hw info into dev private data 2017-04-18 13:47:31 +02:00
Makefile staging: ks7010: remove cfg file handling 2016-06-18 19:45:55 -07:00
michael_mic.c staging: ks7010: fix checkpatch SPACING 2017-03-21 08:52:33 +01:00
michael_mic.h staging: ks7010: fix spelling of Michael MIC 2017-03-14 08:04:51 +08:00
TODO staging: ks7010: add task to TODO file 2017-04-11 16:05:51 +02:00