]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: meson-mx-sdhc: Don't use literal 0 to initialize structs
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 17 May 2020 22:29:07 +0000 (00:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:15 +0000 (11:22 +0200)
commit97a2988008e1b2c5b1decfb2932d486ad98444b7
treeebf8663a95265256af2a8089e0d32c298f295e33
parent6ef67e212d75ea901a60a0ac80cb204b621e0f2d
mmc: meson-mx-sdhc: Don't use literal 0 to initialize structs

Kbuild test robot reports the following warning in lines 56 and 87 of
drivers/mmc/host/meson-mx-sdhc-clkc.c:
  Using plain integer as NULL pointer

Drop the integer value from the struct initialization to fix that
warning. This will still ensure that the compiler will zero out the
struct so it's in a well-defined state.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20200517222907.1277787-2-martin.blumenstingl@googlemail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-mx-sdhc-clkc.c