mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:05:18 +07:00
staging: dgnc: Remove useless cast on void pointer
void pointers do not need to be cast to other pointer types. The semantic patch used to find this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Build tested it. Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d591f5d0e5
commit
fc33bd2921
@ -792,7 +792,7 @@ static void cls_tasklet(unsigned long data)
|
||||
*/
|
||||
static irqreturn_t cls_intr(int irq, void *voidbrd)
|
||||
{
|
||||
struct dgnc_board *brd = (struct dgnc_board *) voidbrd;
|
||||
struct dgnc_board *brd = voidbrd;
|
||||
uint i = 0;
|
||||
unsigned char poll_reg;
|
||||
unsigned long flags;
|
||||
|
@ -944,7 +944,7 @@ static void neo_tasklet(unsigned long data)
|
||||
*/
|
||||
static irqreturn_t neo_intr(int irq, void *voidbrd)
|
||||
{
|
||||
struct dgnc_board *brd = (struct dgnc_board *) voidbrd;
|
||||
struct dgnc_board *brd = voidbrd;
|
||||
struct channel_t *ch;
|
||||
int port = 0;
|
||||
int type = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user