diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-01-20 08:27:14 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-21 17:11:34 -0800 |
commit | 05fcc25662a3bbfc5daa9247132b2d8535053883 (patch) | |
tree | 89337cb6178970c73df9b7de00497d98b5a8d723 /scripts/coccicheck | |
parent | fdb6b338d2e5f12dda2d80880ae4800547388bb4 (diff) | |
download | linux-next-05fcc25662a3bbfc5daa9247132b2d8535053883.tar.gz |
cxgb4: remove bogus CHELSIO_VPD_UNIQUE_ID constant
The comment is quite weird, there is no such thing as a vendor-specific
VPD id. 0x82 is the value of PCI_VPD_LRDT_ID_STRING. So what we are
doing here is simply checking whether the byte at VPD address VPD_BASE
is a valid string LRDT, same as what is done a few lines later in
the code.
LRDT = Large Resource Data Tag, see PCI 2.2 spec, VPD chapter
v2:
- don't set VPD_BASE / VPD_BASE_OLD separately
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/644ef22f-e86a-5cc1-0f27-f873ab165696@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/coccicheck')
0 files changed, 0 insertions, 0 deletions