summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>2025-02-06 17:57:47 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 14:01:16 +0100
commit4df6f005bef04a3dd16c028124a1b5684db3922b (patch)
tree206dd7c97365b102af363cfe499a1da30cdf6e4d /scripts
parent36fd8f1c735e73817f46781906c17f255aa28656 (diff)
downloadlinux-4df6f005bef04a3dd16c028124a1b5684db3922b.tar.gz
linux-4df6f005bef04a3dd16c028124a1b5684db3922b.tar.bz2
linux-4df6f005bef04a3dd16c028124a1b5684db3922b.zip
spi: sn-f-ospi: Fix division by zero
[ Upstream commit 3588b1c0fde2f58d166e3f94a5a58d64b893526c ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions