lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 53/56] usb: Remove void casts
[Added maintainer CC]
Jack Stone wrote:
> Fixed patch
>
> Thanks,
>
> Jack
>
> --
>
> usb: Remove void casts
>
> From: Jack Stone <jwjstone@fastmail.fm>
>
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>
> ---
>
> drivers/usb/host/ehci-dbg.c | 2 +-
> drivers/usb/host/ehci-mem.c | 3 +--
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
> index 7f4ace7..abfc31f 100644
> --- a/drivers/usb/host/ehci-dbg.c
> +++ b/drivers/usb/host/ehci-dbg.c
> @@ -832,7 +832,7 @@ static int fill_buffer(struct debug_buffer *buf)
> int ret = 0;
>
> if (!buf->output_buf)
> - buf->output_buf = (char *)vmalloc(buf->alloc_size);
> + buf->output_buf = vmalloc(buf->alloc_size);
>
> if (!buf->output_buf) {
> ret = -ENOMEM;
> diff --git a/drivers/usb/host/ehci-mem.c b/drivers/usb/host/ehci-mem.c
> index 10d5291..df5334f 100644
> --- a/drivers/usb/host/ehci-mem.c
> +++ b/drivers/usb/host/ehci-mem.c
> @@ -83,8 +83,7 @@ static struct ehci_qh *ehci_qh_alloc (struct ehci_hcd
> *ehci, gfp_t flags)
> struct ehci_qh *qh;
> dma_addr_t dma;
>
> - qh = (struct ehci_qh *)
> - dma_pool_alloc (ehci->qh_pool, flags, &dma);
> + qh = dma_pool_alloc (ehci->qh_pool, flags, &dma);
> if (!qh)
> return qh;
>
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>



\
 
 \ /
  Last update: 2009-04-09 12:43    [W:0.261 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site