Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7242eee1 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman
Browse files

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: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7180d7dc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);