Re: [PATCH 06/15] Bluetooth: hci_bcm: Simplify clk_get error handling
From: Russell King - ARM Linux
Date: Wed Nov 07 2018 - 05:51:40 EST
On Wed, Nov 07, 2018 at 06:12:59PM +0800, Chen-Yu Tsai wrote:
> @@ -911,6 +911,10 @@ static int bcm_get_resources(struct bcm_device *dev)
> if (IS_ERR(dev->clk) && PTR_ERR(dev->clk) == -EPROBE_DEFER)
You can also simplify the above test to:
if (dev->clk == ERR_PTR(-EPROBE_DEFER))
as error pointers are uniquely different from normal pointers.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up