Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261684
b: refs/heads/master
c: 9afbcfa
h: refs/heads/master
v: v3
  • Loading branch information
Krishna Gudipati authored and James Bottomley committed Jul 27, 2011
1 parent e4ab9bc commit 3c90188
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 7826f304b1efa5ab839cf029742290f51c4fa009
refs/heads/master: 9afbcfab74d26051702862b57c0115f71477a3cc
10 changes: 5 additions & 5 deletions trunk/drivers/scsi/bfa/bfad_bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bfad_iocmd_ioc_disable(struct bfad_s *bfad, void *cmd)
spin_lock_irqsave(&bfad->bfad_lock, flags);
if (bfad->disable_active) {
spin_unlock_irqrestore(&bfad->bfad_lock, flags);
return EBUSY;
return -EBUSY;
}

bfad->disable_active = BFA_TRUE;
Expand Down Expand Up @@ -390,7 +390,7 @@ bfad_iocmd_lport_get_rports(struct bfad_s *bfad, void *cmd,
void *iocmd_bufptr;

if (iocmd->nrports == 0)
return EINVAL;
return -EINVAL;

if (bfad_chk_iocmd_sz(payload_len,
sizeof(struct bfa_bsg_lport_get_rports_s),
Expand Down Expand Up @@ -1516,7 +1516,7 @@ static int
bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd,
unsigned int payload_len)
{
int rc = EINVAL;
int rc = -EINVAL;

switch (cmd) {
case IOCMD_IOC_ENABLE:
Expand Down Expand Up @@ -1704,10 +1704,10 @@ bfad_iocmd_handler(struct bfad_s *bfad, unsigned int cmd, void *iocmd,
rc = bfad_iocmd_porglog_get(bfad, iocmd);
break;
default:
rc = EINVAL;
rc = -EINVAL;
break;
}
return -rc;
return rc;
}

static int
Expand Down

0 comments on commit 3c90188

Please sign in to comment.