]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmc_test: Improve a size determination in five functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 8 Jan 2017 20:25:44 +0000 (21:25 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:10 +0000 (13:20 +0100)
commit3f58bf1147d26043c5295889ca216b4b2e0697d9
tree8ab9104b4e7f8d978bac25698b08be53b0d81caa
parente973ade089217a05672f3ec70e0d3ee17957fc47
mmc: mmc_test: Improve a size determination in five functions

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

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_test.c