Skip to content

Commit 136e57b

Browse files
hreineckemartinkpetersen
authored andcommitted
scsi: sg: remove 'save_scat_len'
Unused. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Tested-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 745dfa0 commit 136e57b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/sg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ typedef struct sg_fd { /* holds the state of a file descriptor */
145145
int timeout; /* defaults to SG_DEFAULT_TIMEOUT */
146146
int timeout_user; /* defaults to SG_DEFAULT_TIMEOUT_USER */
147147
Sg_scatter_hold reserve; /* buffer held for this file descriptor */
148-
unsigned save_scat_len; /* original length of trunc. scat. element */
149148
Sg_request *headrp; /* head of request slist, NULL->empty */
150149
struct fasync_struct *async_qp; /* used by asynchronous notification */
151150
Sg_request req_arr[SG_MAX_QUEUE]; /* used as singly-linked list */
@@ -2014,7 +2013,6 @@ sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp)
20142013
req_schp->pages = NULL;
20152014
req_schp->page_order = 0;
20162015
req_schp->sglist_len = 0;
2017-
sfp->save_scat_len = 0;
20182016
srp->res_used = 0;
20192017
}
20202018

0 commit comments

Comments
 (0)