2015-07-21 8:02 GMT+09:00 Dmitry Torokhov <[email protected]>: > Technically the address of rtc->dev can never be NULL, so get_device() > can never fail. Also caller of rtc_device_unregister() supposed to be > the owner of the device and thus have a valid reference. Therefore > call to get_device() is not needed here. > > Signed-off-by: Dmitry Torokhov <[email protected]> > --- > drivers/rtc/class.c | 25 ++++++++++++------------- > 1 file changed, 12 insertions(+), 13 deletions(-)
Makes sense. Reviewed-by: Krzysztof Kozlowski <[email protected]> Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

