summaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2023-05-19 18:04:31 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2023-05-24 18:12:33 +0800
commit97ecafc4f6566f538bbde09d3a8baae4a3419eef (patch)
tree039f0e666ca1bf1c821abe147309cf875e5f81b2 /drivers/rpmsg
parentb7be31b0d5088507b745bfa014798e52fad6dc7a (diff)
downloadlinux-stable-97ecafc4f6566f538bbde09d3a8baae4a3419eef.tar.gz
linux-stable-97ecafc4f6566f538bbde09d3a8baae4a3419eef.tar.bz2
linux-stable-97ecafc4f6566f538bbde09d3a8baae4a3419eef.zip
hwrng: imx-rngc - simpler check for available random bytes
The "level" field in the status register contains the number of random bytes that are available in the FIFO. Use GENMASK to extract this field. We only want to check if level is 0 or if we can read another byte. There's no need for the shift or the level variable. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/rpmsg')
0 files changed, 0 insertions, 0 deletions