Skip to content

mfd: ls2kbmc: Fix a couple Smatch warnings

Dan Carpenter lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2mfd: ls2kbmc: Fix an IS_ERR() vs NULL check in probe()drivers/mfd/ls2k-bmc-core.c+1 -10 replies
2/2mfd: ls2kbmc: check for devm_mfd_add_devices() failuredrivers/mfd/ls2k-bmc-core.c+7 -30 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHuacai Chen
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] mfd: ls2kbmc: Fix a couple Smatch warnings

These are two issues which were detected by Smatch. They're not really going to happen in real life. Small kmalloc()s can't fail. The devm_mfd_add_devices() function isn't going to fail either...

But still, they're worth fixing just for correctness sake.

Dan Carpenter (2):
mfd: ls2kbmc: Fix an IS_ERR() vs NULL check in probe()
mfd: ls2kbmc: check for devm_mfd_add_devices() failure

 drivers/mfd/ls2k-bmc-core.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
Signature · 1 line
2.51.0