@@ -257,10 +257,8 @@ static int omap4_keypad_probe(struct platform_device *pdev)
}
keypad_data = kzalloc(sizeof(struct omap4_keypad), GFP_KERNEL);
- if (!keypad_data) {
- dev_err(&pdev->dev, "keypad_data memory allocation failed\n");
+ if (!keypad_data)
return -ENOMEM;
- }
keypad_data->irq = irq;
@@ -340,7 +338,6 @@ static int omap4_keypad_probe(struct platform_device *pdev)
keypad_data->keymap = kzalloc(max_keys * sizeof(keypad_data->keymap[0]),
GFP_KERNEL);
if (!keypad_data->keymap) {
- dev_err(&pdev->dev, "Not enough memory for keymap\n");
error = -ENOMEM;
goto err_free_input;
}