# Re: \[PATCH\] ocxl: Use pci\_dev\_id() to simplify the code

- From: Andrew Donnellan \<hidden\>
- Date: 2023-08-14 07:08:46 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/08/9531723
- Thread: https://ratatoskr.run/linuxppc-dev/2023/08/9531721/t.md

```text
On Fri, 2023-08-11 at 18:20 +0800, Zheng Zengkai wrote:
> PCI core API pci_dev_id() can be used to get the BDF number for a pci
> device. We don't need to compose it mannually. Use pci_dev_id() to
> simplify the code a little bit.
> 
> Signed-off-by: Zheng Zengkai <redacted>

Acked-by: Andrew Donnellan <redacted>

-- 
Andrew Donnellan    OzLabs, ADL Canberra
ajd@linux.ibm.com   IBM Australia Limited
```
