]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: OMAP2+: Fix smatch found issue for omap_device
authorTony Lindgren <tony@atomide.com>
Mon, 30 Oct 2017 17:01:39 +0000 (10:01 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Oct 2017 17:01:39 +0000 (10:01 -0700)
commitf0c96c6d40312b1a76cd36709dc3eb5948c1b97f
tree4fa56fb757907590876796af1bda472b6043988d
parent684be5a48f4950cb8823b4c4b935515a75615498
ARM: OMAP2+: Fix smatch found issue for omap_device

The patch d85a2d61432a: "ARM: OMAP2+: Populate legacy resources for
dma and smartreflex" from Oct 10, 2017, leads to the following Smatch
complaint:

arch/arm/mach-omap2/omap_device.c:453 omap_device_copy_resources()
         error: we previously assumed 'oh' could be null (see line 394)

Fixes: d85a2d61432a: ("ARM: OMAP2+: Populate legacy resources for dma
and smartreflex")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_device.c