]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: sm501: Improve a size determination in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 8 Mar 2018 13:05:41 +0000 (14:05 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commit73e6d4ca8d00136f7b2ce3b4b96652e49a3d4a7d
tree21a8b612597246ad989b59514c4c4051cd3ad4db
parent5ecf42f0ca7de9b70051a20557c07d3b1fa64abe
mfd: sm501: Improve a size determination in two functions

Replace the specification of data structures by pointer dereferences
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sm501.c