mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
tty: Cleanup tty buffer align mask
Don't use decimal for mask. Don't use literal for aligning. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20221019105504.16800-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fa31528a21
commit
15730dc45d
@ -21,7 +21,7 @@
|
||||
#include "tty.h"
|
||||
|
||||
#define MIN_TTYB_SIZE 256
|
||||
#define TTYB_ALIGN_MASK 255
|
||||
#define TTYB_ALIGN_MASK 0xff
|
||||
|
||||
/*
|
||||
* Byte threshold to limit memory consumption for flip buffers.
|
||||
@ -37,7 +37,7 @@
|
||||
* logic this must match.
|
||||
*/
|
||||
|
||||
#define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~0xFF)
|
||||
#define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~TTYB_ALIGN_MASK)
|
||||
|
||||
/**
|
||||
* tty_buffer_lock_exclusive - gain exclusive access to buffer
|
||||
|
Loading…
Reference in New Issue
Block a user