Explorar el Código

HID: hid-holtekff: don't push static constants on stack for %*ph

There is no need to pass constants via stack. The width may be explicitly
specified in the format.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Andy Shevchenko hace 12 años
padre
commit
9854a6f929
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      drivers/hid/hid-holtekff.c

+ 1 - 1
drivers/hid/hid-holtekff.c

@@ -98,7 +98,7 @@ static void holtekff_send(struct holtekff_device *holtekff,
 		holtekff->field->value[i] = data[i];
 	}
 
-	dbg_hid("sending %*ph\n", 7, data);
+	dbg_hid("sending %7ph\n", data);
 
 	hid_hw_request(hid, holtekff->field->report, HID_REQ_SET_REPORT);
 }