]> Gentwo Git Trees - linux/.git/commit
ata: libata-sata: Use BIT() macro to convert tag to bit field
authorNiklas Cassel <cassel@kernel.org>
Wed, 16 Apr 2025 09:31:31 +0000 (11:31 +0200)
committerDamien Le Moal <dlemoal@kernel.org>
Sun, 20 Apr 2025 23:59:07 +0000 (08:59 +0900)
commitecd9ecc75d150b82a832eb7aaa9b7b983fea5271
tree09fae4266785a1b55b37f414d7e478af3c8418b6
parentf54464458d34141911047258090f25c67204cda4
ata: libata-sata: Use BIT() macro to convert tag to bit field

The BIT() macro is commonly used in the kernel.
Make use of it when converting a tag, fetched from the Successful NCQ
Commands log or the NCQ Command Error log, to a bit field.
This makes the code easier to read.

Suggested-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/libata-sata.c