]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: Drop (un)likely before IS_ERR(_OR_NULL)
authorviresh kumar <viresh.kumar@linaro.org>
Fri, 31 Jul 2015 10:53:43 +0000 (16:23 +0530)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:09 +0000 (13:19 +0200)
commit9e317ccf2ffc0cbd403e97dd79f7cb5fa7986451
treea79d1fa54b0afa6a485e761d1fc1b90f30585df4
parent67f26473399e2a815feb041046414fa3a0f46f1d
rtc: Drop (un)likely before IS_ERR(_OR_NULL)

IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there
is no need to do that again from its callers. Drop it.

gemini driver was using likely() for a failure case while the rtc driver
is getting registered. That looks wrong and it should really be
unlikely. But because we are killing all the unlikely() flags, lets kill
that too.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/interface.c
drivers/rtc/rtc-bfin.c
drivers/rtc/rtc-gemini.c