summaryrefslogtreecommitdiffstats
path: root/Documentation/block
diff options
context:
space:
mode:
authorKenneth Lee <klee33@uw.edu>2022-08-06 22:16:56 -0700
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-09-05 22:00:42 +0200
commit00784da3e6b8c1f0e58d813272503d014de8f64b (patch)
tree0c5e466b3e53662bac649c3387fb3d49bd0803de /Documentation/block
parentddbbed25309f1cd0079e5b099748568842a5ec2b (diff)
downloadlinux-00784da3e6b8c1f0e58d813272503d014de8f64b.tar.bz2
can: kvaser_usb: kvaser_usb_hydra: Use kzalloc for allocating only one element
Use kzalloc(...) rather than kcalloc(1, ...) since because the number of elements we are specifying in this case is 1, kzalloc would accomplish the same thing and we can simplify. Also refactor how we calculate the sizeof() as checkstyle for kzalloc() prefers using the variable we are assigning to versus the type of that variable for calculating the size to allocate. Signed-off-by: Kenneth Lee <klee33@uw.edu> Link: https://lore.kernel.org/all/20220807051656.1991446-1-klee33@uw.edu Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'Documentation/block')
0 files changed, 0 insertions, 0 deletions