Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203839
b: refs/heads/master
c: f8df39f
h: refs/heads/master
i:
  203837: 5f72298
  203835: c7f4d03
  203831: 1dd4fd3
  203823: 0f40ff3
  203807: 965e6ba
  203775: 2250b59
v: v3
  • Loading branch information
Julia Lawall authored and Marcel Holtmann committed Jul 21, 2010
1 parent 6021607 commit 43b93b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 5ee283c063a236b19e4582c675a2d8d615d5809c
refs/heads/master: f8df39f1810b02f877c1ba1eed8e0710019e3b48
8 changes: 2 additions & 6 deletions trunk/drivers/bluetooth/btmrvl_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,14 @@ static int btmrvl_sdio_download_helper(struct btmrvl_sdio_card *card)

tmphlprbufsz = ALIGN_SZ(BTM_UPLD_SIZE, BTSDIO_DMA_ALIGN);

tmphlprbuf = kmalloc(tmphlprbufsz, GFP_KERNEL);
tmphlprbuf = kzalloc(tmphlprbufsz, GFP_KERNEL);
if (!tmphlprbuf) {
BT_ERR("Unable to allocate buffer for helper."
" Terminating download");
ret = -ENOMEM;
goto done;
}

memset(tmphlprbuf, 0, tmphlprbufsz);

helperbuf = (u8 *) ALIGN_ADDR(tmphlprbuf, BTSDIO_DMA_ALIGN);

/* Perform helper data transfer */
Expand Down Expand Up @@ -319,16 +317,14 @@ static int btmrvl_sdio_download_fw_w_helper(struct btmrvl_sdio_card *card)
BT_DBG("Downloading FW image (%d bytes)", firmwarelen);

tmpfwbufsz = ALIGN_SZ(BTM_UPLD_SIZE, BTSDIO_DMA_ALIGN);
tmpfwbuf = kmalloc(tmpfwbufsz, GFP_KERNEL);
tmpfwbuf = kzalloc(tmpfwbufsz, GFP_KERNEL);
if (!tmpfwbuf) {
BT_ERR("Unable to allocate buffer for firmware."
" Terminating download");
ret = -ENOMEM;
goto done;
}

memset(tmpfwbuf, 0, tmpfwbufsz);

/* Ensure aligned firmware buffer */
fwbuf = (u8 *) ALIGN_ADDR(tmpfwbuf, BTSDIO_DMA_ALIGN);

Expand Down

0 comments on commit 43b93b5

Please sign in to comment.