X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Finput%2Fpower.c;fp=drivers%2Finput%2Fpower.c;h=526e6070600c8a02a29df0283d55fcae79217b0f;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=bfc5c63ebffe2a018ffeae99ebe23fc2669983bf;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/drivers/input/power.c b/drivers/input/power.c index bfc5c63eb..526e60706 100644 --- a/drivers/input/power.c +++ b/drivers/input/power.c @@ -103,9 +103,8 @@ static struct input_handle *power_connect(struct input_handler *handler, { struct input_handle *handle; - if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL))) + if (!(handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL))) return NULL; - memset(handle, 0, sizeof(struct input_handle)); handle->dev = dev; handle->handler = handler;