Skip to content

Commit 6b498ad

Browse files
hreineckegregkh
authored andcommitted
scsi: sg: remove 'save_scat_len'
commit 136e57bf43dc4babbfb8783abbf707d483cacbe3 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent cf22210 commit 6b498ad

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/scsi/sg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ typedef struct sg_fd { /* holds the state of a file descriptor */
157157
int timeout; /* defaults to SG_DEFAULT_TIMEOUT */
158158
int timeout_user; /* defaults to SG_DEFAULT_TIMEOUT_USER */
159159
Sg_scatter_hold reserve; /* buffer held for this file descriptor */
160-
unsigned save_scat_len; /* original length of trunc. scat. element */
161160
Sg_request *headrp; /* head of request slist, NULL->empty */
162161
struct fasync_struct *async_qp; /* used by asynchronous notification */
163162
Sg_request req_arr[SG_MAX_QUEUE]; /* used as singly-linked list */
@@ -2059,7 +2058,6 @@ sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp)
20592058
req_schp->pages = NULL;
20602059
req_schp->page_order = 0;
20612060
req_schp->sglist_len = 0;
2062-
sfp->save_scat_len = 0;
20632061
srp->res_used = 0;
20642062
/* Called without mutex lock to avoid deadlock */
20652063
sfp->res_in_use = 0;

0 commit comments

Comments
 (0)