mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
ide-atapi: remove pc->buf
Now after all users of pc->buf have been converted, remove the 64B buffer embedded in each packet command. There should be no functional change resulting from this patch. Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
This commit is contained in:
parent
55ce3a129e
commit
19f52a784f
5 changed files with 3 additions and 30 deletions
|
@ -341,11 +341,6 @@ enum {
|
|||
PC_FLAG_WRITING = (1 << 6),
|
||||
};
|
||||
|
||||
/*
|
||||
* With each packet command, we allocate a buffer of IDE_PC_BUFFER_SIZE bytes.
|
||||
* This is used for several packet commands (not for READ/WRITE commands).
|
||||
*/
|
||||
#define IDE_PC_BUFFER_SIZE 64
|
||||
#define ATAPI_WAIT_PC (60 * HZ)
|
||||
|
||||
struct ide_atapi_pc {
|
||||
|
@ -358,10 +353,6 @@ struct ide_atapi_pc {
|
|||
/* bytes to transfer */
|
||||
int req_xfer;
|
||||
|
||||
/* data buffer */
|
||||
u8 *buf;
|
||||
int buf_size;
|
||||
|
||||
/* the corresponding request */
|
||||
struct request *rq;
|
||||
|
||||
|
@ -371,8 +362,6 @@ struct ide_atapi_pc {
|
|||
* those are more or less driver-specific and some of them are subject
|
||||
* to change/removal later.
|
||||
*/
|
||||
u8 pc_buf[IDE_PC_BUFFER_SIZE];
|
||||
|
||||
unsigned long timeout;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue