staging: ralink-gdma: Remove print statement on failure of devm_kzalloc
Remove print statement after failure of devm_kzalloc. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b5243475c1
commit
4e37138ed3
@ -826,7 +826,6 @@ static int gdma_dma_probe(struct platform_device *pdev)
|
|||||||
struct_size(dma_dev, chan, data->chancnt),
|
struct_size(dma_dev, chan, data->chancnt),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!dma_dev) {
|
if (!dma_dev) {
|
||||||
dev_err(&pdev->dev, "alloc dma device failed\n");
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
dma_dev->data = data;
|
dma_dev->data = data;
|
||||||
|
Reference in New Issue
Block a user