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

Commit c1f204a2 authored by Zhen Kong's avatar Zhen Kong
Browse files

msm_rng: remove the check if zero is read from register



As zero is a valid random number, don't need to
check if zero value is read from register.

Change-Id: I0b63a6c38f65d6deaaf725ec1f98f79fee9b0dcb
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 1cc4edf0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -138,8 +138,6 @@ static int msm_rng_direct_read(struct msm_rng_device *msm_rng_dev,

		/* read FIFO */
		val = readl_relaxed(base + PRNG_DATA_OUT_OFFSET);
		if (!val)
			break;	/* no data to read so just bail */

		/* write data back to callers pointer */
		*(retdata++) = val;