diff options
| author | Joe Perches <joe@perches.com> | 2013-08-29 17:08:18 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-30 17:11:28 -0400 |
| commit | 2d1d3f3ae985ec5676fb56ff2c7acad2e1c4e6eb (patch) | |
| tree | c3f60120c6934bc5f78b0f41b84aa7984e56f004 | |
| parent | b09c74ae1263ea63b63dd65e6b6500686a3a5fe3 (diff) | |
hvc_xen: Remove unnecessary __GFP_ZERO from kzalloc
kzalloc already adds this __GFP_ZERO.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/tty/hvc/hvc_xen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index 682210d778bd..e61c36cbb866 100644 --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c | |||
| @@ -208,7 +208,7 @@ static int xen_hvm_console_init(void) | |||
| 208 | 208 | ||
| 209 | info = vtermno_to_xencons(HVC_COOKIE); | 209 | info = vtermno_to_xencons(HVC_COOKIE); |
| 210 | if (!info) { | 210 | if (!info) { |
| 211 | info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO); | 211 | info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL); |
| 212 | if (!info) | 212 | if (!info) |
| 213 | return -ENOMEM; | 213 | return -ENOMEM; |
| 214 | } else if (info->intf != NULL) { | 214 | } else if (info->intf != NULL) { |
| @@ -257,7 +257,7 @@ static int xen_pv_console_init(void) | |||
| 257 | 257 | ||
| 258 | info = vtermno_to_xencons(HVC_COOKIE); | 258 | info = vtermno_to_xencons(HVC_COOKIE); |
| 259 | if (!info) { | 259 | if (!info) { |
| 260 | info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO); | 260 | info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL); |
| 261 | if (!info) | 261 | if (!info) |
| 262 | return -ENOMEM; | 262 | return -ENOMEM; |
| 263 | } else if (info->intf != NULL) { | 263 | } else if (info->intf != NULL) { |
| @@ -284,7 +284,7 @@ static int xen_initial_domain_console_init(void) | |||
| 284 | 284 | ||
| 285 | info = vtermno_to_xencons(HVC_COOKIE); | 285 | info = vtermno_to_xencons(HVC_COOKIE); |
| 286 | if (!info) { | 286 | if (!info) { |
| 287 | info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO); | 287 | info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL); |
| 288 | if (!info) | 288 | if (!info) |
| 289 | return -ENOMEM; | 289 | return -ENOMEM; |
| 290 | } | 290 | } |
