summaryrefslogtreecommitdiffstats
path: root/drivers/hw_random/mxc-rngc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hw_random/mxc-rngc.c')
-rw-r--r--drivers/hw_random/mxc-rngc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hw_random/mxc-rngc.c b/drivers/hw_random/mxc-rngc.c
index 3ed25aa61d..075c20e437 100644
--- a/drivers/hw_random/mxc-rngc.c
+++ b/drivers/hw_random/mxc-rngc.c
@@ -133,7 +133,7 @@ static int mxc_rngc_data_present(struct hwrng *rng)
static int mxc_rngc_read(struct hwrng *rng, void *buf, size_t max, bool wait)
{
struct mxc_rngc *rngc = container_of(rng, struct mxc_rngc, rng);
- unsigned int err;
+ unsigned int err = 0;
int count = 0;
u32 *data = buf;