mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
scst: Remove unused variables
Avoid that building scst with W=1 triggers compiler warnings about variables that are set but not used. See also the documentation of the gcc compiler flag -Wunused-but-set-variable. This patch does not change any functionality. Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4891,7 +4891,7 @@ static enum compl_status_e fileio_exec_write(struct vdisk_cmd_params *p)
|
||||
loff_t loff = p->loff;
|
||||
mm_segment_t old_fs;
|
||||
loff_t err = 0;
|
||||
ssize_t length, full_len, saved_full_len;
|
||||
ssize_t length, full_len;
|
||||
uint8_t __user *address;
|
||||
struct scst_vdisk_dev *virt_dev = cmd->dev->dh_priv;
|
||||
struct file *fd = virt_dev->fd;
|
||||
@@ -4947,7 +4947,6 @@ static enum compl_status_e fileio_exec_write(struct vdisk_cmd_params *p)
|
||||
goto out_set_fs;
|
||||
}
|
||||
|
||||
saved_full_len = full_len;
|
||||
eiv = iv;
|
||||
eiv_count = iv_count;
|
||||
restart:
|
||||
|
||||
@@ -9076,16 +9076,11 @@ static void scst_process_qerr(struct scst_cmd *cmd)
|
||||
int scst_process_check_condition(struct scst_cmd *cmd)
|
||||
{
|
||||
int res;
|
||||
struct scst_order_data *order_data;
|
||||
struct scst_device *dev;
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
EXTRACHECKS_BUG_ON(test_bit(SCST_CMD_NO_RESP, &cmd->cmd_flags));
|
||||
|
||||
order_data = cmd->cur_order_data;
|
||||
dev = cmd->dev;
|
||||
|
||||
TRACE_DBG("CHECK CONDITION for cmd %p (tgt_dev %p)", cmd, cmd->tgt_dev);
|
||||
|
||||
scst_process_qerr(cmd);
|
||||
|
||||
@@ -858,15 +858,16 @@ out:
|
||||
|
||||
static void scst_pr_remove_device_files(struct scst_tgt_dev *tgt_dev)
|
||||
{
|
||||
int res = 0;
|
||||
struct scst_device *dev = tgt_dev->dev;
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
scst_assert_pr_mutex_held(dev);
|
||||
|
||||
res = dev->pr_file_name ? scst_remove_file(dev->pr_file_name) : -ENOENT;
|
||||
res = dev->pr_file_name1 ? scst_remove_file(dev->pr_file_name1) : -ENOENT;
|
||||
if (dev->pr_file_name)
|
||||
scst_remove_file(dev->pr_file_name);
|
||||
if (dev->pr_file_name1)
|
||||
scst_remove_file(dev->pr_file_name1);
|
||||
|
||||
TRACE_EXIT();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user