diff options
| author | Joe Perches <joe@perches.com> | 2019-02-28 20:38:16 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-01 20:53:41 +0100 |
| commit | 1c7cf3d5e1c181caca75012b65252288c18a25f2 (patch) | |
| tree | 009fb9d944d2218c439edb8c51dc2ea1cfd217c3 /drivers/usb/wusbcore/devconnect.c | |
| parent | 5d5d44dec7270e06c74b2f83ebca1fc081971862 (diff) | |
| download | linux-1c7cf3d5e1c181caca75012b65252288c18a25f2.tar.gz linux-1c7cf3d5e1c181caca75012b65252288c18a25f2.tar.bz2 linux-1c7cf3d5e1c181caca75012b65252288c18a25f2.zip | |
wusb: Remove unnecessary static function ckhdid_printf
This static inline is unnecessary and can be removed
by using the vsprintf %ph extension.
This reduces overall object size by more than 2K.
Reported-by: Louis Taylor <louis@kragniz.eu>
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Louis Taylor <louis@kragniz.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/wusbcore/devconnect.c')
| -rw-r--r-- | drivers/usb/wusbcore/devconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/wusbcore/devconnect.c b/drivers/usb/wusbcore/devconnect.c index fcb06aef2675..a93837d57d53 100644 --- a/drivers/usb/wusbcore/devconnect.c +++ b/drivers/usb/wusbcore/devconnect.c @@ -532,7 +532,7 @@ static void wusbhc_handle_dn_connect(struct wusbhc *wusbhc, } dnc = container_of(dn_hdr, struct wusb_dn_connect, hdr); - ckhdid_printf(pr_cdid, sizeof(pr_cdid), &dnc->CDID); + sprintf(pr_cdid, "%16ph", dnc->CDID.data); dev_info(dev, "DN CONNECT: device %s @ %x (%s) wants to %s\n", pr_cdid, wusb_dn_connect_prev_dev_addr(dnc), |
