Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
f63eb21b
Commit
f63eb21b
authored
Jun 20, 2005
by
Jens Axboe
Browse files
[PATCH] kill 'reading' variable in sg_io(), it isn't used anymore.
Signed-off-by:
Jens Axboe
<
axboe@suse.de
>
parent
e1f546e1
Changes
1
Show whitespace changes
Inline
Side-by-side
drivers/block/scsi_ioctl.c
View file @
f63eb21b
...
...
@@ -216,7 +216,7 @@ static int sg_io(struct file *file, request_queue_t *q,
struct
gendisk
*
bd_disk
,
struct
sg_io_hdr
*
hdr
)
{
unsigned
long
start_time
;
int
reading
,
writing
,
ret
=
0
;
int
writing
=
0
,
ret
=
0
;
struct
request
*
rq
;
struct
bio
*
bio
;
char
sense
[
SCSI_SENSE_BUFFERSIZE
];
...
...
@@ -234,19 +234,15 @@ static int sg_io(struct file *file, request_queue_t *q,
if
(
hdr
->
dxfer_len
>
(
q
->
max_sectors
<<
9
))
return
-
EIO
;
reading
=
writing
=
0
;
if
(
hdr
->
dxfer_len
)
switch
(
hdr
->
dxfer_direction
)
{
default:
return
-
EINVAL
;
case
SG_DXFER_TO_FROM_DEV
:
reading
=
1
;
/* fall through */
case
SG_DXFER_TO_DEV
:
writing
=
1
;
break
;
case
SG_DXFER_FROM_DEV
:
reading
=
1
;
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment