Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 31 Jul 2015 22:18:17 +0200
Michael Hornung <mhornung.linux@xxxxxxxxx> wrote:

> * Fix sparse warning "Using plain integer as NULL pointer"
> 
> Signed-off-by: Michael Hornung <mhornung.linux@xxxxxxxxx>
Acked-by: Christian Gromm <christian.gromm@xxxxxxxxxxxxx>
> ---
>  drivers/staging/most/aim-network/networking.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c
> index 4639c49..c8ab239 100644
> --- a/drivers/staging/most/aim-network/networking.c
> +++ b/drivers/staging/most/aim-network/networking.c
> @@ -311,7 +311,7 @@ static struct net_dev_context *get_net_dev_context(
>  		}
>  	}
>  	spin_unlock(&list_lock);
> -	return 0;
> +	return NULL;
>  }
>  
>  static int aim_probe_channel(struct most_interface *iface, int channel_idx,

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux