Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271755
b: refs/heads/master
c: 23aefb7
h: refs/heads/master
i:
  271753: 4843940
  271751: 91f8702
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Sep 6, 2011
1 parent 7113d03 commit cee840c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 7ed67f15f4d659b1fd2ad82fdea4746f4a1cdf94
refs/heads/master: 23aefb7e0e5e8b3766545af51b88fc3eb07532ba
11 changes: 6 additions & 5 deletions trunk/drivers/media/dvb/frontends/drxd_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,16 +931,15 @@ static int DownloadMicrocode(struct drxd_state *state,
const u8 *pMCImage, u32 Length)
{
u8 *pSrc;
u16 Flags;
u32 Address;
u16 nBlocks;
u16 BlockSize;
u16 BlockCRC;
u32 offset = 0;
int i, status = 0;

pSrc = (u8 *) pMCImage;
Flags = (pSrc[0] << 8) | pSrc[1];
/* We're not using Flags */
/* Flags = (pSrc[0] << 8) | pSrc[1]; */
pSrc += sizeof(u16);
offset += sizeof(u16);
nBlocks = (pSrc[0] << 8) | pSrc[1];
Expand All @@ -957,11 +956,13 @@ static int DownloadMicrocode(struct drxd_state *state,
pSrc += sizeof(u16);
offset += sizeof(u16);

Flags = (pSrc[0] << 8) | pSrc[1];
/* We're not using Flags */
/* u16 Flags = (pSrc[0] << 8) | pSrc[1]; */
pSrc += sizeof(u16);
offset += sizeof(u16);

BlockCRC = (pSrc[0] << 8) | pSrc[1];
/* We're not using BlockCRC */
/* u16 BlockCRC = (pSrc[0] << 8) | pSrc[1]; */
pSrc += sizeof(u16);
offset += sizeof(u16);

Expand Down

0 comments on commit cee840c

Please sign in to comment.