aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorTomas Winkler <[email protected]>2020-07-23 17:59:26 +0300
committerGreg Kroah-Hartman <[email protected]>2020-07-23 19:33:09 +0200
commitc614970e3e5f604f7490e73b465ba66f78f9d715 (patch)
treea680a1bdf39eef7f616b2b2e539ef477190a1e2b /drivers/fpga/fpga-mgr.c
parent4b40b225812d1be14c043fcaefe956856a2b8ab0 (diff)
mei: hw: use sizeof of variable instead of struct type
Use sizeof(*dev) + sizeof(*hw) instead of sizeof(struct mei_device) + sizeof(struct mei_me_hw) There is a possibility of bug when variable type has changed but corresponding struct passed to the sizeof has not. Cc: Gustavo A. R. Silva <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Tomas Winkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions