lkml.org 
[lkml]   [2017]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH linux-next] fs: remove void * casting in init_once()
From
Date


On 16.05.2017 20:38, Fabian Frederick wrote:
> See Documentation/process/coding-style.rst:
>
> "Casting the return value which is a void pointer is redundant. The
> conversion from void pointer to any other pointer type is guaranteed by the C
> programming language."
>
> This will stop copy/paste cascade warnings.
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---

I like that patch.

\
 
 \ /
  Last update: 2017-05-17 13:54    [W:0.150 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site