aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rts_pstor/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/rts_pstor/spi.c')
-rw-r--r--drivers/staging/rts_pstor/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rts_pstor/spi.c b/drivers/staging/rts_pstor/spi.c
index c803ba6..6b36cc5 100644
--- a/drivers/staging/rts_pstor/spi.c
+++ b/drivers/staging/rts_pstor/spi.c
@@ -463,7 +463,7 @@ int spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip)
}
if (len) {
- buf = (u8 *)kmalloc(len, GFP_KERNEL);
+ buf = kmalloc(len, GFP_KERNEL);
if (!buf)
TRACE_RET(chip, STATUS_ERROR);