diff options
author | Chaitanya Kulkarni <[email protected]> | 2020-05-04 01:56:47 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-05-09 16:18:36 -0600 |
commit | 3ecb5faa07c7fd33a3ce1a8340841aa368df7d43 (patch) | |
tree | f22e7eacbf502bc80f88400df726ae629917b3f9 /include/linux/fpga/fpga-bridge.h | |
parent | 87628e2851008d5b0e53859f6062988c6d66d7f5 (diff) |
nvmet: centralize port enable access for configfs
The configfs attributes which are supposed to set when port is disable
such as addr[addrfam|portid|traddr|treq|trsvcid|inline_data_size|trtype]
has repetitive check and generic error message printing.
This patch creates centralize helper to check and print an error
message that also accepts caller as a parameter. This makes error
message easy to parse for the user, removes the duplicate code and
makes it available for futures such scenarios.
Signed-off-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions