Re: [PATCH] rts5208: add a missing check for the status of command sending

2018-12-20 Thread kbuild test robot
Hi Kangjie, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.20-rc7 next-20181220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] rts5208: add a missing check for the status of command sending

2018-12-20 Thread Dan Carpenter
I think maybe this is the first kernel patch I have recieved from you. When you're adding error handling there are a couple ways to go wrong and this is what I look at when I review error handling patches: 1) The error handling is not required. 2) The error handling is not complete. I have

Re: [PATCH] rts5208: add a missing check for the status of command sending

2018-12-20 Thread Dan Carpenter
On Thu, Dec 20, 2018 at 01:57:01AM -0600, Kangjie Lu wrote: > ms_send_cmd() may fail. The fix checks the return value of it, and if it > fails, returns the error "STATUS_FAIL" upstream. > > Signed-off-by: Kangjie Lu > --- > drivers/staging/rts5208/ms.c | 4 +++- > 1 file changed, 3

[PATCH] rts5208: add a missing check for the status of command sending

2018-12-19 Thread Kangjie Lu
ms_send_cmd() may fail. The fix checks the return value of it, and if it fails, returns the error "STATUS_FAIL" upstream. Signed-off-by: Kangjie Lu --- drivers/staging/rts5208/ms.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rts5208/ms.c