Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Wei Yongjun and committed by
Dmitry Torokhov
20c3da9f 31881d74

+1 -3
+1 -3
drivers/input/keyboard/nspire-keypad.c
··· 209 209 } 210 210 211 211 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)) 214 213 return PTR_ERR(keypad->reg_base); 215 - } 216 214 217 215 keypad->input = input = devm_input_allocate_device(&pdev->dev); 218 216 if (!input) {