]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: legousbtower: zero driver data at allocation
authorJohan Hovold <johan@kernel.org>
Tue, 5 Nov 2019 08:41:41 +0000 (09:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Nov 2019 10:17:49 +0000 (11:17 +0100)
commit30da837a4938438a0259a7bc38dc05d66fa77c08
treebf9de075cb5b7d85870a28dd9f5af5e20b4260b7
parent07efa8738853696f100b0495b767823308330b3d
USB: legousbtower: zero driver data at allocation

Zero the driver data at allocation rather than depend on explicit
zeroing, which easy to miss.

Also drop an unnecessary driver-data pointer initialisation.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191105084152.16322-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/legousbtower.c