diff mbox series

[RFC,net-next,7/9] net: dsa: remove obsolete comment about switchdev transactions

Message ID 20201217015822.826304-8-vladimir.oltean@nxp.com
State New
Headers show
Series Get rid of the switchdev transactional model | expand

Commit Message

Vladimir Oltean Dec. 17, 2020, 1:58 a.m. UTC
Now that all port object notifiers were converted to be non-transactional,
we can remove the comment that says otherwise.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 net/dsa/slave.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Florian Fainelli Dec. 17, 2020, 2:11 a.m. UTC | #1
On 12/16/2020 5:58 PM, Vladimir Oltean wrote:
> Now that all port object notifiers were converted to be non-transactional,
> we can remove the comment that says otherwise.
> 
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
diff mbox series

Patch

diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index ffad4324c736..c5f38bcaa5af 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -379,11 +379,6 @@  static int dsa_slave_port_obj_add(struct net_device *dev,
 	struct dsa_port *dp = dsa_slave_to_port(dev);
 	int err;
 
-	/* For the prepare phase, ensure the full set of changes is feasable in
-	 * one go in order to signal a failure properly. If an operation is not
-	 * supported, return -EOPNOTSUPP.
-	 */
-
 	switch (obj->id) {
 	case SWITCHDEV_OBJ_ID_PORT_MDB:
 		if (obj->orig_dev != dev)