linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: serial: sc16is7xx
@ 2014-07-25 12:20 Dan Carpenter
  2014-07-25 16:54 ` Jon Ringle
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-07-25 12:20 UTC (permalink / raw)
  To: jringle; +Cc: linux-serial

Hello Jon Ringle,

The patch dfeae619d781: "serial: sc16is7xx" from Apr 24, 2014, leads
to the following static checker warning:

	drivers/tty/serial/sc16is7xx.c:1168 sc16is7xx_probe()
	warn: 's->clk' isn't an ERR_PTR

drivers/tty/serial/sc16is7xx.c
  1167  out_clk:
  1168          if (!IS_ERR(s->clk))
                     ^^^^^^^^^^^^^
This check isn't needed because we return directly but also I don't
think we ever set s->clk so it is leaked on the remove() path as well.

  1169                  clk_disable_unprepare(s->clk);
  1170  
  1171          return ret;
  1172  }

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-25 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25 12:20 serial: sc16is7xx Dan Carpenter
2014-07-25 16:54 ` Jon Ringle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).