History

hvc_xen: Remove unnecessary __GFP_ZERO from kzalloc

kzalloc already adds this __GFP_ZERO.

Joe Perches committed 13 years ago

Commit 2d1d3f31 parent b09c74a1 file · +3 −3Browse files

Unified · Split

drivers/tty/hvc/hvc_xen.c+3−3
@@ -208,7 +208,7 @@ static int xen_hvm_console_init(void) · 207 unmodified lines
208208
209209 info = vtermno_to_xencons(HVC_COOKIE);
210210 if (!info) {
211− info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO);
211+ info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
212212 if (!info)
213213 return -ENOMEM;
214214 } else if (info->intf != NULL) {
@@ -257,7 +257,7 @@ static int xen_pv_console_init(void) · 42 unmodified lines
257257
258258 info = vtermno_to_xencons(HVC_COOKIE);
259259 if (!info) {
260− info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO);
260+ info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
261261 if (!info)
262262 return -ENOMEM;
263263 } else if (info->intf != NULL) {
@@ -284,7 +284,7 @@ static int xen_initial_domain_console_init(void) · 20 unmodified lines
284284
285285 info = vtermno_to_xencons(HVC_COOKIE);
286286 if (!info) {
287− info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO);
287+ info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
288288 if (!info)
289289 return -ENOMEM;
290290 }