File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -316,10 +316,8 @@ static int pdc_intc_probe(struct platform_device *pdev)
316
316
317
317
/* Allocate driver data */
318
318
priv = devm_kzalloc (& pdev -> dev , sizeof (* priv ), GFP_KERNEL );
319
- if (!priv ) {
320
- dev_err (& pdev -> dev , "cannot allocate device data\n" );
319
+ if (!priv )
321
320
return - ENOMEM ;
322
- }
323
321
raw_spin_lock_init (& priv -> lock );
324
322
platform_set_drvdata (pdev , priv );
325
323
@@ -356,10 +354,8 @@ static int pdc_intc_probe(struct platform_device *pdev)
356
354
/* Get peripheral IRQ numbers */
357
355
priv -> perip_irqs = devm_kcalloc (& pdev -> dev , 4 , priv -> nr_perips ,
358
356
GFP_KERNEL );
359
- if (!priv -> perip_irqs ) {
360
- dev_err (& pdev -> dev , "cannot allocate perip IRQ list\n" );
357
+ if (!priv -> perip_irqs )
361
358
return - ENOMEM ;
362
- }
363
359
for (i = 0 ; i < priv -> nr_perips ; ++ i ) {
364
360
irq = platform_get_irq (pdev , 1 + i );
365
361
if (irq < 0 )
You can’t perform that action at this time.
0 commit comments