Re: [PATCH] drivers: hid: Remove dead storage

2018-10-01 Thread Benjamin Tissoires
On Sat, Sep 29, 2018 at 6:06 PM Tapasweni Pathak wrote: > > Remove storing of return value of ntrig_version_string function > to ret as it is a dead storage and not used afterwards. > > Found using Facebook's Infer. Build tested it. > > Signed-off-by: Tapasweni Pathak > --- > There is another opt

[PATCH] drivers: hid: Remove dead storage

2018-09-29 Thread Tapasweni Pathak
Remove storing of return value of ntrig_version_string function to ret as it is a dead storage and not used afterwards. Found using Facebook's Infer. Build tested it. Signed-off-by: Tapasweni Pathak --- There is another option to instead check for non zero return value for ntrig_version_string()