Skip to content
Snippets Groups Projects
Commit 2d1d3f3a authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman
Browse files

hvc_xen: Remove unnecessary __GFP_ZERO from kzalloc


kzalloc already adds this __GFP_ZERO.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b09c74ae
No related merge requests found
...@@ -208,7 +208,7 @@ static int xen_hvm_console_init(void) ...@@ -208,7 +208,7 @@ static int xen_hvm_console_init(void)
info = vtermno_to_xencons(HVC_COOKIE); info = vtermno_to_xencons(HVC_COOKIE);
if (!info) { if (!info) {
info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO); info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
if (!info) if (!info)
return -ENOMEM; return -ENOMEM;
} else if (info->intf != NULL) { } else if (info->intf != NULL) {
...@@ -257,7 +257,7 @@ static int xen_pv_console_init(void) ...@@ -257,7 +257,7 @@ static int xen_pv_console_init(void)
info = vtermno_to_xencons(HVC_COOKIE); info = vtermno_to_xencons(HVC_COOKIE);
if (!info) { if (!info) {
info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO); info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
if (!info) if (!info)
return -ENOMEM; return -ENOMEM;
} else if (info->intf != NULL) { } else if (info->intf != NULL) {
...@@ -284,7 +284,7 @@ static int xen_initial_domain_console_init(void) ...@@ -284,7 +284,7 @@ static int xen_initial_domain_console_init(void)
info = vtermno_to_xencons(HVC_COOKIE); info = vtermno_to_xencons(HVC_COOKIE);
if (!info) { if (!info) {
info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO); info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
if (!info) if (!info)
return -ENOMEM; return -ENOMEM;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment