summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-pata-timings.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-02-25 01:04:56 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2022-02-28 18:05:25 +0300
commit64276a9939ff414f2f0db38036cf4e1a0a703394 (patch)
treec241bd54e551947cd86fa9f6a73c9f1b5ecec7e4 /drivers/ata/libata-pata-timings.c
parenta3f9e8910e1584d7725ef7d5ac870920d42d0bb4 (diff)
downloadlinux-64276a9939ff414f2f0db38036cf4e1a0a703394.tar.xz
random: cleanup UUID handling
Rather than hard coding various lengths, we can use the right constants. Strings should be `char *` while buffers should be `u8 *`. Rather than have a nonsensical and unused maxlength, just remove it. Finally, use snprintf instead of sprintf, just out of good hygiene. As well, remove the old comment about returning a binary UUID via the binary sysctl syscall. That syscall was removed from the kernel in 5.5, and actually, the "uuid_strategy" function and related infrastructure for even serving it via the binary sysctl syscall was removed with 894d2491153a ("sysctl drivers: Remove dead binary sysctl support") back in 2.6.33. Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/ata/libata-pata-timings.c')
0 files changed, 0 insertions, 0 deletions