]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: media: Remove redundant memset.
authorNavya Sri Nizamkari <navyasri.tech@gmail.com>
Sun, 1 Mar 2015 18:03:45 +0000 (23:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 01:09:52 +0000 (17:09 -0800)
The memory area set by the call to memset is immediately
overwritten by the subsequent call to memcpy. Hence, remove that
redundant memset.

Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/davinci_vpfe/dm365_ipipeif.c

index 878abddf99dc41de5e99fe331e2e181cfd5df35f..ceeef18630cc83d13899839de8c2749fffeff8a9 100644 (file)
@@ -747,7 +747,6 @@ static void ipipeif_set_default_config(struct vpfe_ipipeif_device *ipipeif)
                        .clip = 4095,
                },
        };
-       memset(&ipipeif->config, 0, sizeof(struct ipipeif_params));
        memcpy(&ipipeif->config, &ipipeif_defaults,
               sizeof(struct ipipeif_params));
 }