Re: [PATCH] Staging: netlogic: removes an unnecessary cast on a void pointer.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 04, 2016 at 08:49:54PM +0100, Ben Marsh wrote:
> This patch removes an unnecessary cast on a void pointer in xlr_net.c
> 
> Signed-off-by: Ben Marsh <bmarsh94@xxxxxxxxx>
> ---
>  drivers/staging/netlogic/xlr_net.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c
> index 0015847..ec5b8e0 100644
> --- a/drivers/staging/netlogic/xlr_net.c
> +++ b/drivers/staging/netlogic/xlr_net.c
> @@ -130,7 +130,7 @@ static void xlr_net_fmn_handler(int bkt, int src_stnid, int size, int code,
>  	struct xlr_net_priv *priv;
>  	u32 port, length;
>  	unsigned char *addr;
> -	struct xlr_adapter *adapter = (struct xlr_adapter *)arg;
> +	struct xlr_adapter *adapter = arg;
>  
>  	length = (msg->msg0 >> 40) & 0x3fff;
>  	if (length == 0) {
> -- 
> 1.9.1

Someone sent this before you did, sorry.
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux