Re: [PATCH] staging: et131x: remove unneccessary 'out of memory' message

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

 



Oops, i sent the old commit again, sorry!
Regards,
Karthik Nayak


On Tue, Sep 30, 2014 at 11:10 PM, Fabio Estevam <festevam@xxxxxxxxx> wrote:
> On Tue, Sep 30, 2014 at 2:19 PM, Karthik Nayak <karthik.188@xxxxxxxxx> wrote:
>> Removes the 'out of memory' warning issues by checkpatch
>>
>> Signed-off-by: Karthik Nayak <karthik.188@xxxxxxxxx>
>> ---
>>  drivers/staging/et131x/et131x.c | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
>> index 41fcaa0..f1a9296 100644
>> --- a/drivers/staging/et131x/et131x.c
>> +++ b/drivers/staging/et131x/et131x.c
>> @@ -2423,7 +2423,6 @@ static struct rfd *nic_rx_pkts(struct et131x_adapter *adapter)
>>
>>         skb = dev_alloc_skb(rfd->len + 2);
>>         if (!skb) {
>> -               dev_err(&adapter->pdev->dev, "Couldn't alloc an SKB for Rx\n");
>>                 return NULL;
>>         }
>
> Then you could also remove the braces:
>
> if (!skb)
>       return NULL;
_______________________________________________
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