diff options
| author | 2021-07-23 17:41:52 +0200 | |
|---|---|---|
| committer | 2021-08-20 14:20:34 +0200 | |
| commit | 46dcd1cc2b2fa43bd99f39c7c236d5cdb80522f0 (patch) | |
| tree | bb01b4c683710cae8a5463a1ab62292f70647ed4 /net/lapb/lapb_in.c | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid (diff) | |
| download | linux-rng-46dcd1cc2b2fa43bd99f39c7c236d5cdb80522f0.tar.xz linux-rng-46dcd1cc2b2fa43bd99f39c7c236d5cdb80522f0.zip | |
HID: logitech-hidpp: Use 'atomic_inc_return' instead of hand-writing it
This function logs a warning if the workqueue gets too big.
In order to save a few cycles, use 'atomic_inc_return()' instead of an
'atomic_inc()/atomic_read()' sequence.
This axes a line of code and saves a 'atomic_read()' call.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
