From 38bb617449060ae5301c1b0802bbe4c0fb1252e3 Mon Sep 17 00:00:00 2001 From: Heena Sirwani Date: Mon, 22 Sep 2014 15:44:01 +0530 Subject: [PATCH] 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 --- drivers/staging/bcm/Bcmchar.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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); -- 2.20.1