mirror of https://gitee.com/openkylin/linux.git
staging: media: Remove memset.
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>
This commit is contained in:
parent
4d2c47a922
commit
94b1726fa6
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue