summaryrefslogtreecommitdiff
path: root/include/linux/objagg.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2022-06-07 12:49:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-10 13:37:01 +0200
commitacf90b4d52e6965cbc3b115a68e0f063f703719c (patch)
treede333e559fef0052de1830169c5efae454e17e8f /include/linux/objagg.h
parent32bd78fc4948471be2853ba8b5229e4e1327e13e (diff)
tty/vt: consolemap: use sizeof(*pointer) instead of sizeof(type)
It is preferred to use sizeof(*pointer) instead of sizeof(type). First, the type of the variable can change and one needs not change the former (unlike the latter). Second, the latter is error-prone due to (u16), (u16 *), and (u16 **) mixture here. Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220607104946.18710-12-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/objagg.h')
0 files changed, 0 insertions, 0 deletions