[lkml]   [2005]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 15/17] s390: convert /proc/cio_ignore.
Cornelia Huck <> wrote:
> > Unneeded (and undesirable) cast of void*.
> Some people seem to prefer explicit casts to make the
> type more clear. Is there any concensus on this? (I don't care
> either way ;))

It's better to omit the casts because

a) they're ugly and

b) If someone changes the type of the RHS from void* to anything else,
we'll get a warning, probably leading us to a bug. The cast would have
prevented that warning. IOW, omitting the cast is more type-safe.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-12-10 10:40    [W:0.024 / U:1.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site