mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
rtc: rtc-moxart: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7841fe5396
commit
4410af6e7e
1 changed files with 1 additions and 3 deletions
|
|
@ -247,10 +247,8 @@ static int moxart_rtc_probe(struct platform_device *pdev)
|
|||
int ret = 0;
|
||||
|
||||
moxart_rtc = devm_kzalloc(&pdev->dev, sizeof(*moxart_rtc), GFP_KERNEL);
|
||||
if (!moxart_rtc) {
|
||||
dev_err(&pdev->dev, "devm_kzalloc failed\n");
|
||||
if (!moxart_rtc)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
moxart_rtc->gpio_data = of_get_named_gpio(pdev->dev.of_node,
|
||||
"gpio-rtc-data", 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue