Linux Kernel Mailing List
2014-04-01 23:53:56 UTC
Gitweb: http://git.kernel.org/linus/;a=commit;h=f12919d5c9540ae01ca42f480ccec0fd8c70a6ad
Commit: f12919d5c9540ae01ca42f480ccec0fd8c70a6ad
Parent: 94b9c616e6dbdd49e178b9d94e097a5530064093
Author: Elena Oat <***@gmail.com>
AuthorDate: Tue Mar 18 19:16:49 2014 +0200
Committer: Greg Kroah-Hartman <***@linuxfoundation.org>
CommitDate: Tue Mar 18 12:22:21 2014 -0700
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 <***@gmail.com>
Signed-off-by: Greg Kroah-Hartman <***@linuxfoundation.org>
---
drivers/staging/rtl8188eu/core/rtw_mp.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_mp.c b/drivers/staging/rtl8188eu/core/rtw_mp.c
index 2e02b20..705f666 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mp.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mp.c
@@ -883,7 +883,7 @@ u32 mp_query_psd(struct adapter *pAdapter, u8 *data)
{
u32 i, psd_pts = 0, psd_start = 0, psd_stop = 0;
u32 psd_data = 0;
Commit: f12919d5c9540ae01ca42f480ccec0fd8c70a6ad
Parent: 94b9c616e6dbdd49e178b9d94e097a5530064093
Author: Elena Oat <***@gmail.com>
AuthorDate: Tue Mar 18 19:16:49 2014 +0200
Committer: Greg Kroah-Hartman <***@linuxfoundation.org>
CommitDate: Tue Mar 18 12:22:21 2014 -0700
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 <***@gmail.com>
Signed-off-by: Greg Kroah-Hartman <***@linuxfoundation.org>
---
drivers/staging/rtl8188eu/core/rtw_mp.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_mp.c b/drivers/staging/rtl8188eu/core/rtw_mp.c
index 2e02b20..705f666 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mp.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mp.c
@@ -883,7 +883,7 @@ u32 mp_query_psd(struct adapter *pAdapter, u8 *data)
{
u32 i, psd_pts = 0, psd_start = 0, psd_stop = 0;
u32 psd_data = 0;