[PATCH 4/6] Staging: rts_pstor: s/rtsx_alloc_dma_buf/kmalloc/

Dan Carpenter error27 at gmail.com
Sat Mar 26 17:49:10 UTC 2011


On Sat, Mar 26, 2011 at 08:47:44PM +0300, Dan Carpenter wrote:
> On Sat, Mar 26, 2011 at 08:18:12PM +0300, Alexander Beregalov wrote:
> > -	buf = (u8 *)rtsx_alloc_dma_buf(chip, 64 * 512, GFP_KERNEL);
> > +	buf = (u8 *)kmalloc(64 * 512, GFP_KERNEL);
> 
> kmalloc() returns a NULL pointer.  These casts are not needed.

Grr...  A void pointer I meant, obviously.

regards,
dan carpenter

> 
> regards,
> dan carpenter



More information about the devel mailing list