Re: [PATCH 11/13] drivers/staging/vt6655: Hoist assign from if

From: Greg KH
Date: Wed Apr 28 2010 - 14:36:58 EST


On Wed, Mar 24, 2010 at 10:17:05PM -0700, Joe Perches wrote:
> @@ -361,7 +362,8 @@ typedef struct tagDEVICE_TD_INFO{
> /*
> static inline PDEVICE_TD_INFO alloc_td_info(void) {
> PDEVICE_TD_INFO ptr;
> - if ((ptr = kmalloc(sizeof(DEVICE_TD_INFO),GFP_ATOMIC))==NULL)
> + ptr = kmalloc(sizeof(DEVICE_TD_INFO),GFP_ATOMIC);
> + if (ptr==NULL)

Same issue again...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/