Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316788
b: refs/heads/master
c: a5254db
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and James Bottomley committed Jul 20, 2012
1 parent a0464d2 commit 3ca2b4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fffa69230b7bbfc62d8cfb515c3e658224a0f88c
refs/heads/master: a5254dbb17dd22999f808e646780c32858a3eafa
12 changes: 4 additions & 8 deletions trunk/drivers/scsi/bfa/bfad_im.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,25 +687,21 @@ bfa_status_t
bfad_im_probe(struct bfad_s *bfad)
{
struct bfad_im_s *im;
bfa_status_t rc = BFA_STATUS_OK;

im = kzalloc(sizeof(struct bfad_im_s), GFP_KERNEL);
if (im == NULL) {
rc = BFA_STATUS_ENOMEM;
goto ext;
}
if (im == NULL)
return BFA_STATUS_ENOMEM;

bfad->im = im;
im->bfad = bfad;

if (bfad_thread_workq(bfad) != BFA_STATUS_OK) {
kfree(im);
rc = BFA_STATUS_FAILED;
return BFA_STATUS_FAILED;
}

INIT_WORK(&im->aen_im_notify_work, bfad_aen_im_notify_handler);
ext:
return rc;
return BFA_STATUS_OK;
}

void
Expand Down

0 comments on commit 3ca2b4c

Please sign in to comment.