HID: amd_sfh: Fix warning unwind goto
Return directly instead of using existing goto will not cleanup previously allocated resources. Hence replace return with goto to fix warning unwind goto which cleanups previously allocated resources. Fixes: 93ce5e02 ("HID: amd_sfh: Implement SFH1.1 functionality") Reported-by: Nkernel test robot <lkp@intel.com> Reported-by: NDan Carpenter <error27@gmail.com> Signed-off-by: NBasavaraj Natikar <Basavaraj.Natikar@amd.com> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
Showing
想要评论请 注册 或 登录