diff options
author | Damien Le Moal <[email protected]> | 2023-04-15 11:35:31 +0900 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2023-06-23 15:00:40 -0500 |
commit | 62d48ec7ef87d65723e3efcbfa6178cf2f7d8156 (patch) | |
tree | 437e551f50af3e7c2c0671c09294f94bcb207595 /lib/test_fortify/write_overflow-strcpy.c | |
parent | 349d5c840a5d2608bc910261a176a6bd355fcc73 (diff) |
PCI: epf-test: Simplify read/write/copy test functions
The function pci_epf_test_cmd_handler() uses the register BAR address as a
pointer to a struct pci_epf_test_reg to determine the command sent by the
host and to execute the test function accordingly. There is no need for
doing this assignment again in each of the read, write and copy test
functions. We can simply pass the reg pointer as an argument to the
functions pci_epf_test_write(), pci_epf_test_read() and
pci_epf_test_copy().
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Damien Le Moal <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions