Skip to content

Commit 20c3da9

Browse files
Wei Yongjundtor
authored andcommitted
Input: nspire-keypad - remove redundant dev_err call in nspire_keypad_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 31881d7 commit 20c3da9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/input/keyboard/nspire-keypad.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ static int nspire_keypad_probe(struct platform_device *pdev)
209209
}
210210

211211
keypad->reg_base = devm_ioremap_resource(&pdev->dev, res);
212-
if (IS_ERR(keypad->reg_base)) {
213-
dev_err(&pdev->dev, "failed to remap I/O memory\n");
212+
if (IS_ERR(keypad->reg_base))
214213
return PTR_ERR(keypad->reg_base);
215-
}
216214

217215
keypad->input = input = devm_input_allocate_device(&pdev->dev);
218216
if (!input) {

0 commit comments

Comments
 (0)