]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hvc_xen: Remove unnecessary __GFP_ZERO from kzalloc
authorJoe Perches <joe@perches.com>
Thu, 29 Aug 2013 21:08:18 +0000 (14:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 21:11:28 +0000 (14:11 -0700)
kzalloc already adds this __GFP_ZERO.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_xen.c

index 682210d778bd05ae9dafd7779a0f189919e5f9f0..e61c36cbb866474841f9bdf92d934d3c5ece137a 100644 (file)
@@ -208,7 +208,7 @@ static int xen_hvm_console_init(void)
 
        info = vtermno_to_xencons(HVC_COOKIE);
        if (!info) {
-               info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO);
+               info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
                if (!info)
                        return -ENOMEM;
        } else if (info->intf != NULL) {
@@ -257,7 +257,7 @@ static int xen_pv_console_init(void)
 
        info = vtermno_to_xencons(HVC_COOKIE);
        if (!info) {
-               info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO);
+               info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
                if (!info)
                        return -ENOMEM;
        } else if (info->intf != NULL) {
@@ -284,7 +284,7 @@ static int xen_initial_domain_console_init(void)
 
        info = vtermno_to_xencons(HVC_COOKIE);
        if (!info) {
-               info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO);
+               info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
                if (!info)
                        return -ENOMEM;
        }