Commit e0ec3605 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Torvalds

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Ed Cashin <ecashin@coraid.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a88c1f0c
...@@ -380,7 +380,6 @@ aoecmd_ata_rw(struct aoedev *d) ...@@ -380,7 +380,6 @@ aoecmd_ata_rw(struct aoedev *d)
{ {
struct frame *f; struct frame *f;
struct buf *buf; struct buf *buf;
struct aoetgt *t;
struct sk_buff *skb; struct sk_buff *skb;
struct sk_buff_head queue; struct sk_buff_head queue;
ulong bcnt, fbcnt; ulong bcnt, fbcnt;
...@@ -391,7 +390,6 @@ aoecmd_ata_rw(struct aoedev *d) ...@@ -391,7 +390,6 @@ aoecmd_ata_rw(struct aoedev *d)
f = newframe(d); f = newframe(d);
if (f == NULL) if (f == NULL)
return 0; return 0;
t = *d->tgt;
bcnt = d->maxbcnt; bcnt = d->maxbcnt;
if (bcnt == 0) if (bcnt == 0)
bcnt = DEFAULTBCNT; bcnt = DEFAULTBCNT;
...@@ -485,7 +483,6 @@ resend(struct aoedev *d, struct frame *f) ...@@ -485,7 +483,6 @@ resend(struct aoedev *d, struct frame *f)
struct sk_buff *skb; struct sk_buff *skb;
struct sk_buff_head queue; struct sk_buff_head queue;
struct aoe_hdr *h; struct aoe_hdr *h;
struct aoe_atahdr *ah;
struct aoetgt *t; struct aoetgt *t;
char buf[128]; char buf[128];
u32 n; u32 n;
...@@ -500,7 +497,6 @@ resend(struct aoedev *d, struct frame *f) ...@@ -500,7 +497,6 @@ resend(struct aoedev *d, struct frame *f)
return; return;
} }
h = (struct aoe_hdr *) skb_mac_header(skb); h = (struct aoe_hdr *) skb_mac_header(skb);
ah = (struct aoe_atahdr *) (h+1);
if (!(f->flags & FFL_PROBE)) { if (!(f->flags & FFL_PROBE)) {
snprintf(buf, sizeof(buf), snprintf(buf, sizeof(buf),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment