Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74bcbeb7 authored by Michal Schmidt's avatar Michal Schmidt Committed by David S. Miller
Browse files

bnx2x: fix incorrect filter count in an error message



filters->count is the number of filters we were supposed to configure.
There is no reason to increase it by +1 when printing the count in an error
message.

Signed-off-by: default avatarMichal Schmidt <mschmidt@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 78d55054
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -473,7 +473,7 @@ int bnx2x_vf_mac_vlan_config_list(struct bnx2x *bp, struct bnx2x_virtf *vf,
	/* Rollback if needed */
	/* Rollback if needed */
	if (i != filters->count) {
	if (i != filters->count) {
		BNX2X_ERR("Managed only %d/%d filters - rolling back\n",
		BNX2X_ERR("Managed only %d/%d filters - rolling back\n",
			  i, filters->count + 1);
			  i, filters->count);
		while (--i >= 0) {
		while (--i >= 0) {
			if (!filters->filters[i].applied)
			if (!filters->filters[i].applied)
				continue;
				continue;