* [PATCH] spi: Delete useless checks
@ 2024-11-12 8:16 zhangjiao2
2024-11-13 17:47 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: zhangjiao2 @ 2024-11-12 8:16 UTC (permalink / raw)
To: broonie; +Cc: linux-spi, linux-kernel, zhang jiao
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Since "res" will never be null, just delete this check.
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
drivers/spi/spi.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 74e04a4b0f19..460a49d9a0de 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -984,9 +984,6 @@ static void spi_res_free(void *res)
{
struct spi_res *sres = container_of(res, struct spi_res, data);
- if (!res)
- return;
-
WARN_ON(!list_empty(&sres->entry));
kfree(sres);
}
--
2.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] spi: Delete useless checks
2024-11-12 8:16 [PATCH] spi: Delete useless checks zhangjiao2
@ 2024-11-13 17:47 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2024-11-13 17:47 UTC (permalink / raw)
To: zhangjiao2; +Cc: linux-spi, linux-kernel
On Tue, 12 Nov 2024 16:16:37 +0800, zhangjiao2 wrote:
> Since "res" will never be null, just delete this check.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: Delete useless checks
commit: b1e7828cf9343e1da6c575f3ebaa0f511d8b8cbd
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-13 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-12 8:16 [PATCH] spi: Delete useless checks zhangjiao2
2024-11-13 17:47 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®