>> +++ b/arch/um/drivers/port_kern.c
>> @@ -87,11 +87,8 @@ static int port_accept(struct port_list *port)
>> }
>>
>> conn = kmalloc(sizeof(*conn), GFP_ATOMIC);
>> -if (conn == NULL) {
>> -printk(KERN_ERR "port_accept : failed to allocate "
>> - "connect
> --- a/arch/um/drivers/port_kern.c
> +++ b/arch/um/drivers/port_kern.c
> @@ -87,11 +87,8 @@ static int port_accept(struct port_list *port)
> }
>
> conn = kmalloc(sizeof(*conn), GFP_ATOMIC);
> - if (conn == NULL) {
> - printk(KERN_ERR "port_accept : failed to allocate
From: Markus Elfring
Date: Wed, 18 Jan 2017 22:00:14 +0100
The script "checkpatch.pl" pointed information out like the following.
WARNING: Possible unnecessary 'out of memory' message
Thus fix the affected source code places.
Signed-off-by: Markus Elfring
---
arch/um/drivers/port_kern.c | 13
3 matches
Mail list logo