mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
firewire: replace subtraction with bitwise and
Replace an unnecessary subtraction with a bitwise AND when determining the value of ext_tcode in fw_fill_transaction() to save a cpu cycle or two in a somewhat critical path. Signed-off-by: Jarod Wilson <jwilson@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
f8d2dc3938
commit
8f9f963e5d
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
|
|||
int ext_tcode;
|
||||
|
||||
if (tcode > 0x10) {
|
||||
ext_tcode = tcode - 0x10;
|
||||
ext_tcode = tcode & ~0x10;
|
||||
tcode = TCODE_LOCK_REQUEST;
|
||||
} else
|
||||
ext_tcode = 0;
|
||||
|
|
Loading…
Reference in a new issue