diff options
| author | Ondrej Zary <linux@zary.sk> | 2023-02-19 01:01:36 +0300 |
|---|---|---|
| committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2023-03-23 04:29:25 +0300 |
| commit | b42251a867a9859a57228c0eadd6f342a339b83d (patch) | |
| tree | 02224a2ce7d5f9d6ab12ab9c4906f298356d5343 /include | |
| parent | 8d7494a06a14ce8e2d792b95f28c839367a8ebdc (diff) | |
| download | linux-b42251a867a9859a57228c0eadd6f342a339b83d.tar.xz | |
ata: pata_parport: remove scratch parameter from test_proto()
Don't pass around a pointer to scratch buffer. Use local buffers in
protocols that need it.
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Ondrej Zary <linux@zary.sk>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/pata_parport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pata_parport.h b/include/linux/pata_parport.h index e45bb1896003..bbfa4e63ee85 100644 --- a/include/linux/pata_parport.h +++ b/include/linux/pata_parport.h @@ -67,7 +67,7 @@ struct pi_protocol { int (*test_port)(struct pi_adapter *pi); int (*probe_unit)(struct pi_adapter *pi); - int (*test_proto)(struct pi_adapter *pi, char *scratch); + int (*test_proto)(struct pi_adapter *pi); void (*log_adapter)(struct pi_adapter *pi); int (*init_proto)(struct pi_adapter *pi); |
