Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50bfde8d authored by Jack Pham's avatar Jack Pham
Browse files

usb: host: xhci-plat: Avoid unneeded internal declaration warning



When compiling with clang, the following warning is thrown:

drivers/usb/host/xhci-plat.c:443:36: warning: variable
'usb_xhci_acpi_match' is not needed and will not be emitted
[-Wunneeded-internal-declaration]

This happens because the reference to the usb_xhci_acpi_match table
is wrapped in the ACPI_PTR() macro which is NULL when CONFIG_ACPI
is not defined.

While __maybe_unused could be used here to quell the warning, this
patch opts to simply wrap the definition of the match table within
which follows the pattern used by other drivers.

Change-Id: I92bdee0d22a99600ff085fe7089e16b93175abbc
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 7f2bc0f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment