Thread (7 messages) 7 messages, 2 authors, 2017-11-08

Re: [PATCH 3/3] rtc: rx8010: Fix for incorrect return value

From: Akshay Bhat <hidden>
Date: 2017-11-08 20:01:32
Also in: lkml

On Tue, Nov 7, 2017 at 9:30 PM, Alexandre Belloni
[off-list ref] wrote:
On 03/11/2017 at 13:32:41 -0400, Akshay Bhat wrote:
quoted
      if (err != 2)
              return err < 0 ? err : -EIO;
+     err = 0;
Isn't it simpler to make the function return 0 instead of err at the end?
Makes sense, fixed in v2 patch, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help