Skip to content

Commit 650b4ec

Browse files
Colin Ian Kingdavem330
authored andcommitted
rxrpc: remove redundant initialization of variable 'len'
The variable 'len' is being initialized with a value that is never read and it is re-assigned later, hence the initialization is redundant and can be removed. Cleans up clang warning: net/rxrpc/recvmsg.c:275:15: warning: Value stored to 'len' during its initialization is never read Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0aee4c2 commit 650b4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rxrpc/recvmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static int rxrpc_locate_data(struct rxrpc_call *call, struct sk_buff *skb,
272272
unsigned int *_offset, unsigned int *_len)
273273
{
274274
unsigned int offset = sizeof(struct rxrpc_wire_header);
275-
unsigned int len = *_len;
275+
unsigned int len;
276276
int ret;
277277
u8 annotation = *_annotation;
278278

0 commit comments

Comments
 (0)