diff options
| author | Christopher Obbard <chris.obbard@collabora.com> | 2022-06-23 09:58:42 +0100 |
|---|---|---|
| committer | Richard Weinberger <richard@nod.at> | 2022-07-17 23:34:09 +0200 |
| commit | 9e70cbd11b03889c92462cf52edb2bd023c798fa (patch) | |
| tree | a7566b02a435005f0d0bbe8215858c096905ca24 /net/switchdev/switchdev.c | |
| parent | 53078ceb8d0e530ab360896511005628e69ae896 (diff) | |
um: random: Don't initialise hwrng struct with zero
Initialising the hwrng struct with zeros causes a
compile-time sparse warning:
$ ARCH=um make -j10 W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
...
CHECK arch/um/drivers/random.c
arch/um/drivers/random.c:31:31: sparse: warning: Using plain integer as NULL pointer
Fix the warning by not initialising the hwrng struct
with zeros as it is initialised anyway during module
init.
Fixes: 72d3e093afae ("um: random: Register random as hwrng-core device")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
