mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
net: mscc: ocelot: Remove useless code
payload only memset but no use at all, so we drop them. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5e927a9f4b
commit
985e254c73
1 changed files with 0 additions and 4 deletions
|
@ -672,12 +672,10 @@ static void is1_entry_set(struct ocelot *ocelot, int ix,
|
|||
{
|
||||
const struct vcap_props *vcap = &ocelot->vcap[VCAP_IS1];
|
||||
struct ocelot_vcap_key_vlan *tag = &filter->vlan;
|
||||
struct ocelot_vcap_u64 payload;
|
||||
struct vcap_data data;
|
||||
int row = ix / 2;
|
||||
u32 type;
|
||||
|
||||
memset(&payload, 0, sizeof(payload));
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
/* Read row */
|
||||
|
@ -813,11 +811,9 @@ static void es0_entry_set(struct ocelot *ocelot, int ix,
|
|||
{
|
||||
const struct vcap_props *vcap = &ocelot->vcap[VCAP_ES0];
|
||||
struct ocelot_vcap_key_vlan *tag = &filter->vlan;
|
||||
struct ocelot_vcap_u64 payload;
|
||||
struct vcap_data data;
|
||||
int row = ix;
|
||||
|
||||
memset(&payload, 0, sizeof(payload));
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
/* Read row */
|
||||
|
|
Loading…
Reference in a new issue