We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7609fb6 commit 9dfec4aCopy full SHA for 9dfec4a
drivers/usb/core/driver.c
@@ -119,11 +119,11 @@ ssize_t usb_show_dynids(struct usb_dynids *dynids, char *buf)
119
guard(mutex)(&usb_dynids_lock);
120
list_for_each_entry(dynid, &dynids->list, node)
121
if (dynid->id.bInterfaceClass != 0)
122
- count += sysfs_emit_at(&buf[count], count, "%04x %04x %02x\n",
+ count += sysfs_emit_at(buf, count, "%04x %04x %02x\n",
123
dynid->id.idVendor, dynid->id.idProduct,
124
dynid->id.bInterfaceClass);
125
else
126
- count += sysfs_emit_at(&buf[count], count, "%04x %04x\n",
+ count += sysfs_emit_at(buf, count, "%04x %04x\n",
127
dynid->id.idVendor, dynid->id.idProduct);
128
return count;
129
}
0 commit comments