Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157756
b: refs/heads/master
c: 89e1b95
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jul 22, 2009
1 parent 3d0aa48 commit d416b1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 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: 9c6c529a21cd3b6efb367256a239eec4153721c0
refs/heads/master: 89e1b9511fc7fbfac4139fca5531f5f9d946c537
14 changes: 6 additions & 8 deletions trunk/sound/pci/ctxfi/ctamixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,12 @@ static int get_amixer_rsc(struct amixer_mgr *mgr,

/* Allocate mem for amixer resource */
amixer = kzalloc(sizeof(*amixer), GFP_KERNEL);
if (NULL == amixer) {
err = -ENOMEM;
return err;
}
if (!amixer)
return -ENOMEM;

/* Check whether there are sufficient
* amixer resources to meet request. */
err = 0;
spin_lock_irqsave(&mgr->mgr_lock, flags);
for (i = 0; i < desc->msr; i++) {
err = mgr_get_resource(&mgr->mgr, 1, &idx);
Expand Down Expand Up @@ -397,12 +396,11 @@ static int get_sum_rsc(struct sum_mgr *mgr,

/* Allocate mem for sum resource */
sum = kzalloc(sizeof(*sum), GFP_KERNEL);
if (NULL == sum) {
err = -ENOMEM;
return err;
}
if (!sum)
return -ENOMEM;

/* Check whether there are sufficient sum resources to meet request. */
err = 0;
spin_lock_irqsave(&mgr->mgr_lock, flags);
for (i = 0; i < desc->msr; i++) {
err = mgr_get_resource(&mgr->mgr, 1, &idx);
Expand Down
7 changes: 3 additions & 4 deletions trunk/sound/pci/ctxfi/ctsrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,12 +724,11 @@ static int get_srcimp_rsc(struct srcimp_mgr *mgr,

/* Allocate mem for SRCIMP resource */
srcimp = kzalloc(sizeof(*srcimp), GFP_KERNEL);
if (NULL == srcimp) {
err = -ENOMEM;
return err;
}
if (!srcimp)
return -ENOMEM;

/* Check whether there are sufficient SRCIMP resources. */
err = 0;
spin_lock_irqsave(&mgr->mgr_lock, flags);
for (i = 0; i < desc->msr; i++) {
err = mgr_get_resource(&mgr->mgr, 1, &idx);
Expand Down

0 comments on commit d416b1b

Please sign in to comment.