]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: amd: Drop redundant check
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 24 Dec 2024 17:05:49 +0000 (18:05 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jan 2025 20:16:25 +0000 (20:16 +0000)
commite6204f39fe3a7b4538815a2d778b601bd543649e
tree3f4dc9e3a1088a2fa3699629e6b4b4f192eddc2a
parentd0e5faccb229b1dacc4c9fa11f6df33bb1fdabd8
spi: amd: Drop redundant check

Both spi and spi-mem cores already take care of checking the minimum and
maximum speed for transfers depending on the controller
capabilities. There is no reason to repeat this check in controller
drivers.

Once this possible error condition removed from the function, it makes
no longer sense to return an int.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20241224-winbond-6-11-rc1-quad-support-v2-4-ad218dbc406f@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amd.c