Message ID | f53e3426-14b4-dceb-6599-1d15f3eeee84@users.sourceforge.net |
---|---|
State | Rejected |
Delegated to: | David Miller |
Headers | show |
diff --git a/drivers/sbus/char/uctrl.c b/drivers/sbus/char/uctrl.c index 0a5013350acd..f3b9f7e87ffa 100644 --- a/drivers/sbus/char/uctrl.c +++ b/drivers/sbus/char/uctrl.c @@ -352,10 +352,8 @@ static int uctrl_probe(struct platform_device *op) int err = -ENOMEM; p = kzalloc(sizeof(*p), GFP_KERNEL); - if (!p) { - printk(KERN_ERR "uctrl: Unable to allocate device struct.\n"); + if (!p) goto out; - } p->regs = of_ioremap(&op->resource[0], 0, resource_size(&op->resource[0]),