diff options
author | Jason Yan <[email protected]> | 2022-12-14 21:38:05 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-12-30 16:59:10 +0000 |
commit | ffebb38efee3e6bbcccd0b7babf0ede8890794cd (patch) | |
tree | 2dd302ca8345ae4e157614cd4c87e8217de3e78d /tools/perf/scripts/python/task-analyzer.py | |
parent | 6c90466e2803d93ed47a980fbf184d35e012d895 (diff) |
scsi: libsas: Change the coding style of sas_discover_sata()
The coding style where calling this interface is inconsistent with other
interfaces for SATA devices. The standard style for other SATA interfaces
is like:
#ifdefine CONFIG_SCSI_SAS_ATA
void sas_ata_task_abort(struct sas_task *task);
#else
static inline void sas_ata_task_abort(struct sas_task *task)
{
}
#endif
And the callers does not have to do things like "#ifdefine CONFIG_SCSI_SAS_ATA"
and may call the interface directly. So follow the standard style here.
Cc: John Garry <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Reviewed-by: Jack Wang <[email protected]>
Reviewed-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions