]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: rtl8188eu: Fix warning of unchecked sscanf return value.
authorElena Oat <oat.elena@gmail.com>
Tue, 18 Mar 2014 17:16:49 +0000 (19:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 19:22:21 +0000 (12:22 -0700)
commitf12919d5c9540ae01ca42f480ccec0fd8c70a6ad
treeb9aeb48dca789a61a2bf21672aa1a700b2f92226
parent94b9c616e6dbdd49e178b9d94e097a5530064093
Staging: rtl8188eu: Fix warning of unchecked sscanf return value.

This patch fixes the warning "unchecked sscanf return value" in file
rtw_mp.c. Zero is returned in case sscanf fails or if less than expected
items are read and assigned successfully. I have decided to return zero,
because in previous conditional statements zero was returned in case of
failure.

While at it, I have also fixed the warning of line over 80
characters.

Signed-off-by: Elena Oat <oat.elena@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mp.c