intel / kernelflinger

BSD 2-Clause "Simplified" License
65 stars 67 forks source link

set initial value of serial number to zeros #86

Closed zhouji3x closed 4 years ago

zhouji3x commented 4 years ago

if the initial value of serial number is set to non-zero, the real serial number will not be read.

Tracked-On: OAM-91337 Signed-off-by: JianFeng,Zhou jianfeng.zhou@intel.com

jeremy-compostella commented 4 years ago

According to the c specification a static variable default value is 0. The right way to set to 0 in C is to not initialize it.

kwang13 commented 4 years ago

good suggestion. @zhouji3x , please follow.