media: sp887x: drop unneeded assignment
PATCH 1/1 media: sp887x: drop unneeded assignment
The pointer 'mem' was initialized to 'fw->data' but immediately after that it was assigned 'fw->data + 10'. Lets remove the extra assignement and initialize the pointer to the address its going to use.
Signed-off-by Sudip Mukherjee <[email protected]>
--- drivers/media/dvb-frontends/sp887x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/dvb-frontends/sp887x.c +1 -3
@@ -140,7 +140,7 @@ static int sp887x_initial_setup (struct dvb_frontend* fe, const struct firmwareu8 buf [BLOCKSIZE +2 ];int i;int fw_size = fw->size; -const unsigned char *mem = fw->data; +const unsigned char *mem = fw->data +10 ;dprintk ("%s\n" , __func__);
@@ -148,8 +148,6 @@ static int sp887x_initial_setup (struct dvb_frontend* fe, const struct firmwareif (fw_size <FW_SIZE +10 )return -ENODEV ; - mem = fw->data +10 ; -/* soft reset */ sp887x_writereg (state,0xf1a ,0x000 );
Signature · 1 line
2.30.2