diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-09 14:14:50 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 08:53:23 -0700 |
commit | 20055477566958e751a20290aa45ae21bd4b5e11 (patch) | |
tree | 302a5b408170abb77f024c5e6f8b89cd93690985 | |
parent | 37ecdbb012bf3a466d4dda85a93d1c69dc483d3a (diff) | |
download | op-kernel-dev-20055477566958e751a20290aa45ae21bd4b5e11.zip op-kernel-dev-20055477566958e751a20290aa45ae21bd4b5e11.tar.gz |
char: xilinx_hwicap: Remove casting the return value which is a void pointer
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.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/char/xilinx_hwicap/xilinx_hwicap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c index 5224da5..a7f65c2 100644 --- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c +++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c @@ -721,7 +721,7 @@ static int hwicap_remove(struct device *dev) { struct hwicap_drvdata *drvdata; - drvdata = (struct hwicap_drvdata *)dev_get_drvdata(dev); + drvdata = dev_get_drvdata(dev); if (!drvdata) return 0; |