projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eaae19
)
tty: make check_tty_count() void
author
Jiri Slaby
<jirislaby@kernel.org>
Wed, 12 Jul 2023 08:58:30 +0000
(10:58 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 17:09:01 +0000
(19:09 +0200)
The return value is unused, so drop it.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link:
https://lore.kernel.org/r/20230712085830.4908-1-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index
3959efc
..
e23e416
100644
(file)
--- a/
drivers/tty/tty_io.c
+++ b/
drivers/tty/tty_io.c
@@
-270,7
+270,7
@@
static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
}
/* Caller must hold tty_lock */
-static
int
check_tty_count(struct tty_struct *tty, const char *routine)
+static
void
check_tty_count(struct tty_struct *tty, const char *routine)
{
#ifdef CHECK_TTY_COUNT
struct list_head *p;
@@
-290,10
+290,8
@@
static int check_tty_count(struct tty_struct *tty, const char *routine)
if (tty->count != (count + kopen_count)) {
tty_warn(tty, "%s: tty->count(%d) != (#fd's(%d) + #kopen's(%d))\n",
routine, tty->count, count, kopen_count);
- return (count + kopen_count);
}
#endif
- return 0;
}
/**