From: Dmitry Torokhov Date: Wed, 24 May 2017 00:07:46 +0000 (-0700) Subject: firmware: vpd: do not clear statically allocated data X-Git-Tag: v4.14-rc1~620^2~130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd246486f94694edb86e898a24a61ebf2f2fdba4;p=platform%2Fkernel%2Flinux-rpi.git firmware: vpd: do not clear statically allocated data ro_vpd and rw_vpd are static module-scope variables that are guaranteed to be initialized with zeroes, there is no need for explicit memset(). Signed-off-by: Dmitry Torokhov Reviewed-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/firmware/google/vpd.c b/drivers/firmware/google/vpd.c index 66fd023..4f8f99ed 100644 --- a/drivers/firmware/google/vpd.c +++ b/drivers/firmware/google/vpd.c @@ -317,9 +317,6 @@ static int __init vpd_platform_init(void) if (!vpd_kobj) return -ENOMEM; - memset(&ro_vpd, 0, sizeof(ro_vpd)); - memset(&rw_vpd, 0, sizeof(rw_vpd)); - platform_driver_register(&vpd_driver); return 0;