mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-31 03:37:46 +08:00
net: pktgen: remove some superfluous variable initializing
Remove some superfluous variable initializing before hex32_arg call (as the same init is done here already). Signed-off-by: Peter Seiderer <ps.report@gmx.net> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
7d39e01803
commit
80f6c198df
@@ -1785,7 +1785,7 @@ static ssize_t pktgen_if_write(struct file *file,
|
||||
}
|
||||
|
||||
if (!strcmp(name, "tos")) {
|
||||
__u32 tmp_value = 0;
|
||||
__u32 tmp_value;
|
||||
len = hex32_arg(&user_buffer[i], 2, &tmp_value);
|
||||
if (len < 0)
|
||||
return len;
|
||||
@@ -1801,7 +1801,7 @@ static ssize_t pktgen_if_write(struct file *file,
|
||||
}
|
||||
|
||||
if (!strcmp(name, "traffic_class")) {
|
||||
__u32 tmp_value = 0;
|
||||
__u32 tmp_value;
|
||||
len = hex32_arg(&user_buffer[i], 2, &tmp_value);
|
||||
if (len < 0)
|
||||
return len;
|
||||
|
||||
Reference in New Issue
Block a user