From: Hannes Reinecke <hare@suse.de>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>,
James Bottomley <james.bottomley@hansenpartnership.com>,
Johannes Thumshirn <jth@kernel.org>,
Doug Gilberg <dgilbert@interlog.com>,
linux-scsi@vger.kernel.org, Hannes Reinecke <hare@suse.de>,
Hannes Reinecke <hare@suse.com>
Subject: [PATCHv2 2/6] sg: remove 'save_scat_len'
Date: Fri, 3 Feb 2017 13:18:21 +0100 [thread overview]
Message-ID: <1486124305-104141-3-git-send-email-hare@suse.de> (raw)
In-Reply-To: <1486124305-104141-1-git-send-email-hare@suse.de>
Unused.
Signed-off-by: Hannes Reinecke <hare@suse.com>
---
drivers/scsi/sg.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index 55cd641..0b1279d 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -145,7 +145,6 @@
int timeout; /* defaults to SG_DEFAULT_TIMEOUT */
int timeout_user; /* defaults to SG_DEFAULT_TIMEOUT_USER */
Sg_scatter_hold reserve; /* buffer held for this file descriptor */
- unsigned save_scat_len; /* original length of trunc. scat. element */
Sg_request *headrp; /* head of request slist, NULL->empty */
struct fasync_struct *async_qp; /* used by asynchronous notification */
Sg_request req_arr[SG_MAX_QUEUE]; /* used as singly-linked list */
@@ -2006,7 +2005,6 @@ static long sg_compat_ioctl(struct file *filp, unsigned int cmd_in, unsigned lon
req_schp->pages = NULL;
req_schp->page_order = 0;
req_schp->sglist_len = 0;
- sfp->save_scat_len = 0;
srp->res_used = 0;
}
--
1.8.5.6
next prev parent reply other threads:[~2017-02-03 12:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-03 12:18 [PATCHv2 0/6] sanitize sg Hannes Reinecke
2017-02-03 12:18 ` [PATCHv2 1/6] sg: disable SET_FORCE_LOW_DMA Hannes Reinecke
2017-02-03 12:20 ` Johannes Thumshirn
2017-02-03 12:18 ` Hannes Reinecke [this message]
2017-02-03 12:21 ` [PATCHv2 2/6] sg: remove 'save_scat_len' Johannes Thumshirn
2017-02-03 12:18 ` [PATCHv2 3/6] sg: protect accesses to 'reserved' page array Hannes Reinecke
2017-02-03 12:23 ` Johannes Thumshirn
2017-02-03 12:18 ` [PATCHv2 4/6] sg: check for valid direction before starting the request Hannes Reinecke
2017-02-03 12:36 ` Johannes Thumshirn
2017-02-03 13:59 ` kbuild test robot
2017-02-03 12:18 ` [PATCHv2 5/6] sg: use standard lists for sg_requests Hannes Reinecke
2017-02-03 12:40 ` Johannes Thumshirn
2017-02-03 12:18 ` [PATCHv2 6/6] sg: close race condition in sg_remove_sfp_usercontext() Hannes Reinecke
2017-02-03 12:52 ` [PATCHv2 0/6] sanitize sg Johannes Thumshirn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1486124305-104141-3-git-send-email-hare@suse.de \
--to=hare@suse.de \
--cc=dgilbert@interlog.com \
--cc=hare@suse.com \
--cc=hch@lst.de \
--cc=james.bottomley@hansenpartnership.com \
--cc=jth@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).