i2c: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. For example, k.alloc and v.alloc failures use dump_stack(). Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Jean Delvare <jdelvare@suse.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Felipe Balbi <balbi@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
此提交包含在:
@@ -751,10 +751,8 @@ static int pch_i2c_probe(struct pci_dev *pdev,
|
||||
pch_pci_dbg(pdev, "Entered.\n");
|
||||
|
||||
adap_info = kzalloc((sizeof(struct adapter_info)), GFP_KERNEL);
|
||||
if (adap_info == NULL) {
|
||||
pch_pci_err(pdev, "Memory allocation FAILED\n");
|
||||
if (adap_info == NULL)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ret = pci_enable_device(pdev);
|
||||
if (ret) {
|
||||
|
新增問題並參考
封鎖使用者