staging: media: Remove memset.
authorNavya Sri Nizamkari <navyasri.tech@gmail.com>
Sun, 1 Mar 2015 18:03:04 +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_resizer.c

index 75e70e14b7246dc38dd22942f1c1a443fc06ec6c..7cc8d1b4d737c4d03718862a0145568ec0a1a842 100644 (file)
@@ -907,7 +907,6 @@ resizer_set_defualt_configuration(struct vpfe_resizer_device *resizer)
                        .out_chr_pos = VPFE_IPIPE_YUV422_CHR_POS_COSITE,
                },
        };
-       memset(&resizer->config, 0, sizeof(struct resizer_params));
        memcpy(&resizer->config, &rsz_default_config,
               sizeof(struct resizer_params));
 }