linux/drivers/net/wireless/zydas/zd1211rw
Gustavo A. R. Silva 0c7beb2db9 zd1211rw: use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes, in particular in the
context in which this code is being used.

So, replace code of the following form:

sizeof(struct usb_req_write_regs) + count * sizeof(struct reg_data)

with:

struct_size(req, reg_writes, count)

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-04-25 19:49:50 +03:00
..
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zd_chip.c zd1211rw: stop using deprecated get_seconds() 2018-06-27 19:10:21 +03:00
zd_chip.h
zd_def.h
zd_mac.c zd1211rw: Replace spin_is_locked() with lockdep 2018-10-05 11:35:05 +03:00
zd_mac.h
zd_rf_al2230.c
zd_rf_al7230b.c
zd_rf_rf2959.c zd1211rw: fix spelling mistake 'hybernate' -> 'hibernate' 2017-07-28 18:02:41 +03:00
zd_rf_uw2453.c
zd_rf.c
zd_rf.h
zd_usb.c zd1211rw: use struct_size() helper 2019-04-25 19:49:50 +03:00
zd_usb.h