]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: host: xhci-tegra: Fix Wunused-const-variable
authorNathan Huckleberry <nhuck@google.com>
Thu, 13 Jun 2019 18:58:38 +0000 (11:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 06:44:09 +0000 (08:44 +0200)
commit1a65a03561198f38f8198650b52f55a21cbb4b6c
tree91ef033c37464b4cb00f4b71d99af1e9a2ac9fbf
parenta954e5fb4bc2d401b8fc3b4c7cd316497ff80225
usb: host: xhci-tegra: Fix Wunused-const-variable

Clang produces the following warning

drivers/usb/host/xhci-tegra.c:357:27: warning: unused variable
'mbox_cmd_name' [-Wunused-const-variable]
static const char * const mbox_cmd_name[] = {

Looks like it was intended for logging or debugging, but was
never implemented. Removing mbox_cmd_name.

Cc: clang-built-linux@googlegroups.com
Link: https://github.com/ClangBuiltLinux/linux/issues/533
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c