summaryrefslogtreecommitdiff
path: root/scripts/extract-fwblobs
diff options
context:
space:
mode:
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>2025-02-06 11:57:47 +0300
committerMark Brown <broonie@kernel.org>2025-02-06 14:33:51 +0300
commit3588b1c0fde2f58d166e3f94a5a58d64b893526c (patch)
tree4770efd980bdcff00b6e5dd30cd2d9390bbc4009 /scripts/extract-fwblobs
parentaff2355d260e47e780cd96af127beaab18a664b1 (diff)
downloadlinux-3588b1c0fde2f58d166e3f94a5a58d64b893526c.tar.xz
spi: sn-f-ospi: Fix division by zero
When there is no dummy cycle in the spi-nor commands, both dummy bus cycle bytes and width are zero. Because of the cpu's warning when divided by zero, the warning should be avoided. Return just zero to avoid such calculations. Fixes: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver") Co-developed-by: Kohei Ito <ito.kohei@socionext.com> Signed-off-by: Kohei Ito <ito.kohei@socionext.com> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Link: https://patch.msgid.link/20250206085747.3834148-1-hayashi.kunihiko@socionext.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions