Message ID | 20220216015042.113021-1-yang.lee@linux.alibaba.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 269ecc0c894c6db7ea13ae076c01bd24e87b15e6 |
Delegated to: | Jiri Kosina |
Headers | show |
Series | [-next] HID: i2c-hid: remove unneeded semicolon | expand |
On Wed, 16 Feb 2022, Yang Li wrote: > Eliminate the following coccicheck warning: > ./drivers/hid/i2c-hid/i2c-hid-core.c:357:56-57: Unneeded semicolon > > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> > --- > drivers/hid/i2c-hid/i2c-hid-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c > index 91b2fa0d33c7..c078f09a2318 100644 > --- a/drivers/hid/i2c-hid/i2c-hid-core.c > +++ b/drivers/hid/i2c-hid/i2c-hid-core.c > @@ -354,7 +354,7 @@ static int i2c_hid_set_or_send_report(struct i2c_hid *ihid, > * With simple "send report" all data goes into the output > * register. > */ > - *(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister;; > + *(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister; > length += sizeof(__le16); > } Thanks, that was me fat-fingering the fixup in the original patch. Applied.
diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 91b2fa0d33c7..c078f09a2318 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -354,7 +354,7 @@ static int i2c_hid_set_or_send_report(struct i2c_hid *ihid, * With simple "send report" all data goes into the output * register. */ - *(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister;; + *(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister; length += sizeof(__le16); }
Eliminate the following coccicheck warning: ./drivers/hid/i2c-hid/i2c-hid-core.c:357:56-57: Unneeded semicolon Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> --- drivers/hid/i2c-hid/i2c-hid-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)