mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
cdrom: remove set but not used variable 'tocuse'
tocuse is not used after setting its value. It is safe to remove the unused variable. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d91dc172e3
commit
cdffab7a86
1 changed files with 3 additions and 3 deletions
|
@ -327,15 +327,15 @@ static int get_entry_track(int track)
|
||||||
static int gdrom_get_last_session(struct cdrom_device_info *cd_info,
|
static int gdrom_get_last_session(struct cdrom_device_info *cd_info,
|
||||||
struct cdrom_multisession *ms_info)
|
struct cdrom_multisession *ms_info)
|
||||||
{
|
{
|
||||||
int fentry, lentry, track, data, tocuse, err;
|
int fentry, lentry, track, data, err;
|
||||||
|
|
||||||
if (!gd.toc)
|
if (!gd.toc)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
tocuse = 1;
|
|
||||||
/* Check if GD-ROM */
|
/* Check if GD-ROM */
|
||||||
err = gdrom_readtoc_cmd(gd.toc, 1);
|
err = gdrom_readtoc_cmd(gd.toc, 1);
|
||||||
/* Not a GD-ROM so check if standard CD-ROM */
|
/* Not a GD-ROM so check if standard CD-ROM */
|
||||||
if (err) {
|
if (err) {
|
||||||
tocuse = 0;
|
|
||||||
err = gdrom_readtoc_cmd(gd.toc, 0);
|
err = gdrom_readtoc_cmd(gd.toc, 0);
|
||||||
if (err) {
|
if (err) {
|
||||||
pr_info("Could not get CD table of contents\n");
|
pr_info("Could not get CD table of contents\n");
|
||||||
|
|
Loading…
Reference in a new issue