summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/watchdog
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-07-19 17:41:22 +0200
committerWim Van Sebroeck <wim@iguana.be>2016-07-25 11:02:17 +0200
commit9dd8d5f870f44597c67d0e5f72753b9d02810308 (patch)
tree3be87d80ea4667be11371c8148df7ba81824a67f /Documentation/devicetree/bindings/watchdog
parente035d8f787b1de664fcac5eb84643f8c374284c4 (diff)
Documentation/watchdog: check return value for magic close
A recent commit added a write to the watchdog test code for doing the "magic close", but that caused a compile-time warning: Documentation/watchdog/src/watchdog-test.c: In function ‘main’: Documentation/watchdog/src/watchdog-test.c:94:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] This changes the code to print a runtime warning if the write fails. Fixes: 5a2d3de19602 ("Documentation/watchdog: add support for magic close to watchdog-test") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'Documentation/devicetree/bindings/watchdog')
0 files changed, 0 insertions, 0 deletions