• Wim Van Sebroeck's avatar
    watchdog: core: fix WDIOC_GETSTATUS return value · 8b9468d4
    Wim Van Sebroeck authored
    In commit 7a879824 we added
    a wrapper for the WDIOC_GETSTATUS ioctl call. The code results
    however in a different behaviour: it returns an error if the
    driver doesn't support the status operation. This is not
    according to the API that says that when we don't support
    the status operation, that we just should return a 0 value.
    Only when the device isn't there anymore, we should return an
    error.
    Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
    8b9468d4
watchdog_dev.c 14.3 KB