[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140326.154648.2160205796112896190.davem@davemloft.net>
Date: Wed, 26 Mar 2014 15:46:48 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: joe@...ches.com
Cc: dm@...lsio.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] chelsio: Remove addressof casts to same type
From: Joe Perches <joe@...ches.com>
Date: Mon, 24 Mar 2014 10:45:12 -0700
> Using addressof then casting to the original type is pointless,
> so remove these unnecessary casts.
>
> Done via coccinelle script:
>
> $ cat typecast.cocci
> @@
> type T;
> T foo;
> @@
>
> - (T *)&foo
> + &foo
>
> Signed-off-by: Joe Perches <joe@...ches.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists