aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-09-11 17:25:45 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 18:59:27 -0400
commite0ec36059774ff51812b40509d28ca6c9a2a6a62 (patch)
tree013a0a10b184a42970182e1dfad76622494c5a79
parenta88c1f0caccaa335690d53ea03b12de31c357263 (diff)
aoe: suppress compiler warnings
This patch fixes following compiler warnings: drivers/block/aoe/aoecmd.c: In function `aoecmd_ata_rw': drivers/block/aoe/aoecmd.c:383:17: warning: variable `t' set but not used [-Wunused-but-set-variable] struct aoetgt *t; ^ drivers/block/aoe/aoecmd.c: In function `resend': drivers/block/aoe/aoecmd.c:488:21: warning: variable `ah' set but not used [-Wunused-but-set-variable] struct aoe_atahdr *ah; ^ Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Ed Cashin <ecashin@coraid.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/block/aoe/aoecmd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 4d45dba7fb8f..d2515435e23f 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -380,7 +380,6 @@ aoecmd_ata_rw(struct aoedev *d)
380{ 380{
381 struct frame *f; 381 struct frame *f;
382 struct buf *buf; 382 struct buf *buf;
383 struct aoetgt *t;
384 struct sk_buff *skb; 383 struct sk_buff *skb;
385 struct sk_buff_head queue; 384 struct sk_buff_head queue;
386 ulong bcnt, fbcnt; 385 ulong bcnt, fbcnt;
@@ -391,7 +390,6 @@ aoecmd_ata_rw(struct aoedev *d)
391 f = newframe(d); 390 f = newframe(d);
392 if (f == NULL) 391 if (f == NULL)
393 return 0; 392 return 0;
394 t = *d->tgt;
395 bcnt = d->maxbcnt; 393 bcnt = d->maxbcnt;
396 if (bcnt == 0) 394 if (bcnt == 0)
397 bcnt = DEFAULTBCNT; 395 bcnt = DEFAULTBCNT;
@@ -485,7 +483,6 @@ resend(struct aoedev *d, struct frame *f)
485 struct sk_buff *skb; 483 struct sk_buff *skb;
486 struct sk_buff_head queue; 484 struct sk_buff_head queue;
487 struct aoe_hdr *h; 485 struct aoe_hdr *h;
488 struct aoe_atahdr *ah;
489 struct aoetgt *t; 486 struct aoetgt *t;
490 char buf[128]; 487 char buf[128];
491 u32 n; 488 u32 n;
@@ -500,7 +497,6 @@ resend(struct aoedev *d, struct frame *f)
500 return; 497 return;
501 } 498 }
502 h = (struct aoe_hdr *) skb_mac_header(skb); 499 h = (struct aoe_hdr *) skb_mac_header(skb);
503 ah = (struct aoe_atahdr *) (h+1);
504 500
505 if (!(f->flags & FFL_PROBE)) { 501 if (!(f->flags & FFL_PROBE)) {
506 snprintf(buf, sizeof(buf), 502 snprintf(buf, sizeof(buf),