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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
5d5d44dec7
commit
1c7cf3d5e1
@@ -236,22 +236,6 @@ enum {
|
||||
WUSB_TRUST_TIMEOUT_MS = 4000, /* [WUSB] section 4.15.1 */
|
||||
};
|
||||
|
||||
static inline size_t ckhdid_printf(char *pr_ckhdid, size_t size,
|
||||
const struct wusb_ckhdid *ckhdid)
|
||||
{
|
||||
return scnprintf(pr_ckhdid, size,
|
||||
"%02hx %02hx %02hx %02hx %02hx %02hx %02hx %02hx "
|
||||
"%02hx %02hx %02hx %02hx %02hx %02hx %02hx %02hx",
|
||||
ckhdid->data[0], ckhdid->data[1],
|
||||
ckhdid->data[2], ckhdid->data[3],
|
||||
ckhdid->data[4], ckhdid->data[5],
|
||||
ckhdid->data[6], ckhdid->data[7],
|
||||
ckhdid->data[8], ckhdid->data[9],
|
||||
ckhdid->data[10], ckhdid->data[11],
|
||||
ckhdid->data[12], ckhdid->data[13],
|
||||
ckhdid->data[14], ckhdid->data[15]);
|
||||
}
|
||||
|
||||
/*
|
||||
* WUSB Crypto stuff (WUSB1.0[6])
|
||||
*/
|
||||
|
Reference in New Issue
Block a user