From: Heena Sirwani Date: Mon, 22 Sep 2014 10:14:01 +0000 (+0530) Subject: Staging: bcm: Remove unneeded else after return. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=38bb617449060ae5301c1b0802bbe4c0fb1252e3;p=linux-beck.git Staging: bcm: Remove unneeded else after return. The following patch fixes the checkpatch.pl warning: WARNING: else is generally not useful after a break or return. Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 963a64fd482a..88ce2da531c6 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -564,9 +564,8 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp, BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "GPIO_MODE_REGISTER read failed"); return status; - } else { - status = STATUS_SUCCESS; } + status = STATUS_SUCCESS; /* Set the gpio mode register to output */ *(UINT *)reset_val |= (1<fw_download_sema); up(&ad->NVMRdmWrmLock); return status; - } else { - BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, - DBG_LVL_ALL, "Firm Download Over...\n"); } + BCM_DEBUG_PRINT(ad, DBG_TYPE_OTHERS, OSAL_DBG, + DBG_LVL_ALL, "Firm Download Over...\n"); mdelay(10);