diff options
author | Damien Le Moal <[email protected]> | 2023-04-15 11:35:35 +0900 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2023-06-23 15:02:39 -0500 |
commit | 96d513f5ed4cafafa31ed99f74ad527f6b0ff47b (patch) | |
tree | 5b398ab96d50d922550a366bdb65e4d42d41829f /lib/test_fortify/write_overflow-memset.c | |
parent | fc97f5f7c23735da0c7314533203306d96a038fb (diff) |
PCI: epf-test: Cleanup pci_epf_test_cmd_handler()
Command codes are never combined together as flags into a single value.
Thus we can replace the series of "if" tests in pci_epf_test_cmd_handler()
with a cleaner switch-case statement. This also allows checking that we
got a valid command and print an error message if we did not.
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-memset.c')
0 files changed, 0 insertions, 0 deletions