Skip to content
Commit d60fc1bb authored by Niranjan Dighe's avatar Niranjan Dighe Committed by Greg Kroah-Hartman
Browse files

staging: lustre/lnet: Fix wrong typecasting warning generated by sparse



Fix the following warning generated about type casting by sparse

warning: cast removes address space of expression

The current implementation casts the structure pointers with (char *)
without __user annotation and then adds sizeof struct to it, thereby
generating the sparse warning. Fixed this by removing the unnecessary
char pointer type cast.

Signed-off-by: default avatarNiranjan Dighe <niranjan.dighe@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5fd88337
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment