Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754184AbbHSPMY (ORCPT ); Wed, 19 Aug 2015 11:12:24 -0400 Received: from exsmtp01.microchip.com ([198.175.253.37]:29213 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753209AbbHSPMX (ORCPT ); Wed, 19 Aug 2015 11:12:23 -0400 Date: Wed, 19 Aug 2015 17:12:12 +0200 From: Christian Gromm To: Adrian Remonda CC: , , Subject: Re: [PATCHv7 4/5] Staging: most: hdm-dim2/dim2_hal.c. Fix "Using plain integer as NULL pointer" warnings Message-ID: <20150819171212.295ac863@muaddib> In-Reply-To: <1439547484-20492-5-git-send-email-adrianremonda@gmail.com> References: <1439547484-20492-1-git-send-email-adrianremonda@gmail.com> <1439547484-20492-5-git-send-email-adrianremonda@gmail.com> Organization: MCHP X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1220 Lines: 35 On Fri, 14 Aug 2015 12:18:03 +0200 Adrian Remonda wrote: > This patch fixes the warning generated by sparse: "Using plain integer > as NULL pointer" by replacing the offending 0 with NULL. > > Signed-off-by: Adrian Remonda > --- > drivers/staging/most/hdm-dim2/dim2_hal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/most/hdm-dim2/dim2_hal.c b/drivers/staging/most/hdm-dim2/dim2_hal.c > index 01b748944ee4..a54cf2cedac3 100644 > --- a/drivers/staging/most/hdm-dim2/dim2_hal.c > +++ b/drivers/staging/most/hdm-dim2/dim2_hal.c > @@ -889,7 +889,7 @@ struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch, > struct dim_ch_state_t *state_ptr) > { > if (!ch || !state_ptr) > - return 0; > + return NULL; > > state_ptr->ready = ch->state.level < 2; > state_ptr->done_buffers = ch->done_sw_buffers_number; This has already been addressed. Regards, Chris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/