Skip to contentSkip to conversation

udf:super.c Fix warning: variable 'sbi' set but not used

PATCH In review Justin P. Mattock 2 participants 4 messages Jul 8, 2010 – Aug 2, 2010 UDF filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udf:super.c Fix warning: variable 'sbi' set but not used

This fixes this warning when building the kernel:
CC fs/udf/super.o
fs/udf/super.c: In function 'udf_load_sequence':
fs/udf/super.c:1582:22: warning: variable 'sbi' set but not used Please have a look, when you have time and let me know.

---
 fs/udf/super.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/udf/super.c +0 -2
index 612d1e2..12bb651 100644
@@ -1579,9 +1579,7 @@ static int udf_load_sequence(struct super_block *sb, struct buffer_head *bh,
 {
 	struct anchorVolDescPtr *anchor;
 	long main_s, main_e, reserve_s, reserve_e;
-	struct udf_sb_info *sbi;
 
-	sbi = UDF_SB(sb);
 	anchor = (struct anchorVolDescPtr *)bh->b_data;
 
 	/* Locate the main sequence */
Signature · 1 line
1.7.1.rc1.21.gf3bd6
#1 lore raw

any ideas on the status of this?

Quoted 26 lines

This fixes this warning when building the kernel:
CC fs/udf/super.o
fs/udf/super.c: In function 'udf_load_sequence':
fs/udf/super.c:1582:22: warning: variable 'sbi' set but not used Please have a look, when you have time and let me know.

---
  fs/udf/super.c |    2 --
  1 files changed, 0 insertions(+), 2 deletions(-)
fs/udf/super.c +0 -2
index 612d1e2..12bb651 100644
@@ -1579,9 +1579,7 @@ static int udf_load_sequence(struct super_block *sb, struct buffer_head *bh,
  {
  	struct anchorVolDescPtr *anchor;
  	long main_s, main_e, reserve_s, reserve_e;
-	struct udf_sb_info *sbi;
 
-	sbi = UDF_SB(sb);
  	anchor = (struct anchorVolDescPtr *)bh->b_data;
 
  	/* Locate the main sequence */
#2 lore raw
Quoted 1 line · Justin P. Mattock

any ideas on the status of this?

I have it in my tree and will push it to Linus in this merge window.

Honza

Quoted 28 lines
Quoted 27 lines

This fixes this warning when building the kernel:
CC fs/udf/super.o
fs/udf/super.c: In function 'udf_load_sequence':
fs/udf/super.c:1582:22: warning: variable 'sbi' set but not used Please have a look, when you have time and let me know.

---
 fs/udf/super.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/udf/super.c +0 -2
index 612d1e2..12bb651 100644
@@ -1579,9 +1579,7 @@ static int udf_load_sequence(struct super_block *sb, struct buffer_head *bh,
 {
 	struct anchorVolDescPtr *anchor;
 	long main_s, main_e, reserve_s, reserve_e;
-	struct udf_sb_info *sbi;
 
-	sbi = UDF_SB(sb);
 	anchor = (struct anchorVolDescPtr *)bh->b_data;
 
 	/* Locate the main sequence */
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#3 lore raw
Quoted 5 lines · Jan Kara
Quoted 1 line · Justin P. Mattock

any ideas on the status of this?

I have it in my tree and will push it to Linus in this merge window.

Honza

o.k. cool..

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines

This fixes this warning when building the kernel:
CC fs/udf/super.o
fs/udf/super.c: In function 'udf_load_sequence':
fs/udf/super.c:1582:22: warning: variable 'sbi' set but not used Please have a look, when you have time and let me know.

---
  fs/udf/super.c |    2 --
  1 files changed, 0 insertions(+), 2 deletions(-)
fs/udf/super.c +0 -1
index 612d1e2..12bb651 100644
@@ -1579,9 +1579,7 @@ static int udf_load_sequence(struct super_block *sb, struct buffer_head *bh,
  {
  	struct anchorVolDescPtr *anchor;
  	long main_s, main_e, reserve_s, reserve_e;
-	struct udf_sb_info *sbi;
 
Quoted 5 lines
Quoted 5 lines

fs/udf/super.c static int udf_load_sequence(struct super_block *sb, struct buffer_head *bh, · line 1585

Quoted 4 lines
fs/udf/super.c +0 -1
-	sbi = UDF_SB(sb);
  	anchor = (struct anchorVolDescPtr *)bh->b_data;
 
  	/* Locate the main sequence */

Justin P. Mattock