diff options
author | Leo Kim <leo.kim@atmel.com> | 2016-02-22 13:41:13 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-22 11:48:19 -0800 |
commit | 7242eee14bdde4f010e4eb862ab2d09ec239aa51 (patch) | |
tree | dc7bee1ee585b23d5f26e4946bfdb92b2b11bab3 | |
parent | 7180d7dc21fd32d718cc21396d2b2d80b25b9545 (diff) | |
download | linux-7242eee14bdde4f010e4eb862ab2d09ec239aa51.tar.bz2 |
staging: wilc1000: removes unnecessary wilc_debug print log
This patch removes unnecessary wilc_debug print log.
The print log was written when if condition fail.
The condition is chip-id check function.
Also, replaces this condition with normal function.
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index f0ac47f75a69..34018a17f54b 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -502,9 +502,7 @@ void chip_wakeup(struct wilc *wilc) do { usleep_range(2 * 1000, 2 * 1000); - if ((wilc_get_chipid(wilc, true) == 0)) - wilc_debug(N_ERR, "Couldn't read chip id. Wake up failed\n"); - + wilc_get_chipid(wilc, true); } while ((wilc_get_chipid(wilc, true) == 0) && ((++trials % 3) == 0)); } while (wilc_get_chipid(wilc, true) == 0); |