aboutsummaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorXiubo Li <lixiubo@cmss.chinamobile.com>2015-02-26 14:58:19 +0800
committerMarcelo Tosatti <mtosatti@redhat.com>2015-03-10 10:37:43 -0300
commit893bdbf16574e781504ea2a767ff8919d1394e52 (patch)
tree7bbf7de4d0ae552be5d664dd1bd3ed80a398c663 /firmware
parent548ef28449c0c06f92194c40ff0eaed248cb4b75 (diff)
KVM: Fix WARNINGs for 'sizeof(X)' instead of 'sizeof X' in kvm_main.c
There are many WARNINGs like this: WARNING: sizeof tr should be sizeof(tr) + if (copy_from_user(&tr, argp, sizeof tr)) In kvm_main.c many places are using 'sizeof(X)', and the other places are using 'sizeof X', while the kernel recommands to use 'sizeof(X)', so this patch will replace all 'sizeof X' to 'sizeof(X)' to make them consistent and at the same time to reduce the WARNINGs noise when we are checking new patches. Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions