From: Dean Michael Ancajas Date: Mon, 8 Dec 2014 21:23:01 +0000 (-0700) Subject: Staging: ft1000: ft1000-pcmcia: Fixed a coding style issue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a5470f80ce7731160bbf8173e9df1ebeeb7e9e6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: ft1000: ft1000-pcmcia: Fixed a coding style issue Fixed a coding style issue for braces. Signed-off-by: Dean Michael Ancajas Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c index d5475b7270a8..755beb7228f8 100644 --- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c +++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c @@ -172,11 +172,11 @@ u16 ft1000_read_dpram_mag_16(struct net_device *dev, int offset, int Index) spin_lock_irqsave(&info->dpram_lock, flags); ft1000_write_reg(dev, FT1000_REG_DPRAM_ADDR, offset); /* check if we want to read upper or lower 32-bit word */ - if (Index) { + if (Index) data = ft1000_read_reg(dev, FT1000_REG_MAG_DPDATAL); - } else { + else data = ft1000_read_reg(dev, FT1000_REG_MAG_DPDATAH); - } + spin_unlock_irqrestore(&info->dpram_lock, flags); return data;