diff options
author | 2020-04-09 13:52:31 +0000 | |
---|---|---|
committer | 2020-04-09 13:52:31 +0000 | |
commit | ba27d7a56dd2751c32a9ff9aa24fa68c024b114d (patch) | |
tree | d43c4add5cc8a1ffac5c58e199f1e6b10addf0d6 /usr.bin/tmux/cmd-send-keys.c | |
parent | Pass correct flags to fnmatch. (diff) | |
download | wireguard-openbsd-ba27d7a56dd2751c32a9ff9aa24fa68c024b114d.tar.xz wireguard-openbsd-ba27d7a56dd2751c32a9ff9aa24fa68c024b114d.zip |
Some unnecessary assignments and unused variables.
Diffstat (limited to 'usr.bin/tmux/cmd-send-keys.c')
-rw-r--r-- | usr.bin/tmux/cmd-send-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c index bb504f1cb81..ea4b8d98676 100644 --- a/usr.bin/tmux/cmd-send-keys.c +++ b/usr.bin/tmux/cmd-send-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-send-keys.c,v 1.53 2020/03/19 14:03:48 nicm Exp $ */ +/* $OpenBSD: cmd-send-keys.c,v 1.54 2020/04/09 13:52:32 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -152,7 +152,7 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_ERROR); } if (wme != NULL && (args_has(args, 'X') || args->argc == 0)) { - if (wme == NULL || wme->mode->command == NULL) { + if (wme->mode->command == NULL) { cmdq_error(item, "not in a mode"); return (CMD_RETURN_ERROR); } |