X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Facpi%2Fhotkey.c;h=8edfb92f7ede258ef665aa7dabfc1aeea73b87ab;hb=8c4a013da84e69e4d736363921792e1b37525577;hp=1ba2db6718652aae3874c9bdf8ceae167fc990e4;hpb=62250b3bb596ffbae17c4b3d865fecd6329ce8b3;p=powerpc.git diff --git a/drivers/acpi/hotkey.c b/drivers/acpi/hotkey.c index 1ba2db6718..8edfb92f7e 100644 --- a/drivers/acpi/hotkey.c +++ b/drivers/acpi/hotkey.c @@ -265,8 +265,7 @@ static char *format_result(union acpi_object *object) static int hotkey_polling_seq_show(struct seq_file *seq, void *offset) { - struct acpi_polling_hotkey *poll_hotkey = - (struct acpi_polling_hotkey *)seq->private; + struct acpi_polling_hotkey *poll_hotkey = seq->private; char *buf; @@ -577,7 +576,7 @@ init_poll_hotkey_device(union acpi_hotkey *key, char **config_entry, if (ACPI_FAILURE(status)) goto do_fail_zero; key->poll_hotkey.poll_result = - (union acpi_object *)kmalloc(sizeof(union acpi_object), GFP_KERNEL); + kmalloc(sizeof(union acpi_object), GFP_KERNEL); if (!key->poll_hotkey.poll_result) goto do_fail_zero; return AE_OK;