OSDN Git Service

staging: atomisp: remove else statement after return
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 20 Mar 2017 14:42:15 +0000 (14:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:04:33 +0000 (08:04 +0100)
It doesn't need to have else statement after return.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c

index 37d334e..036413b 100644 (file)
@@ -2951,11 +2951,11 @@ int atomisp_get_metadata(struct atomisp_sub_device *asd, int flag,
                dev_err(isp->dev, "copy to user failed: copied %d bytes\n",
                        ret);
                return -EFAULT;
-       } else {
-               list_del_init(&md_buf->list);
-               list_add_tail(&md_buf->list, &asd->metadata[md_type]);
        }
 
+       list_del_init(&md_buf->list);
+       list_add_tail(&md_buf->list, &asd->metadata[md_type]);
+
        dev_dbg(isp->dev, "%s: HAL de-queued metadata type %d with exp_id %d\n",
                __func__, md_type, md->exp_id);
        return 0;