You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
staging: cptm1217: 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:
committed by
Greg Kroah-Hartman
parent
3fd511d986
commit
12c492cf46
@@ -278,7 +278,7 @@ static void cp_tm1217_get_data(struct cp_tm1217_device *ts)
|
||||
|
||||
static irqreturn_t cp_tm1217_sample_thread(int irq, void *handle)
|
||||
{
|
||||
struct cp_tm1217_device *ts = (struct cp_tm1217_device *) handle;
|
||||
struct cp_tm1217_device *ts = handle;
|
||||
u8 req[2];
|
||||
int retval;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user