staging: pi433: avoid logging ENOMEM messages
Fixes checkpatch warning: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
211c282061
commit
57fa80f5b0
@ -934,10 +934,8 @@ static int pi433_open(struct inode *inode, struct file *filp)
|
||||
|
||||
if (!device->rx_buffer) {
|
||||
device->rx_buffer = kmalloc(MAX_MSG_SIZE, GFP_KERNEL);
|
||||
if (!device->rx_buffer) {
|
||||
dev_dbg(device->dev, "open/ENOMEM\n");
|
||||
if (!device->rx_buffer)
|
||||
return -ENOMEM;
|
||||
}
|
||||
}
|
||||
|
||||
device->users++;
|
||||
|
Loading…
Reference in New Issue
Block a user