]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ice: Remove newlines in NL_SET_ERR_MSG_MOD
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 21 Mar 2024 16:58:17 +0000 (09:58 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 1 Apr 2024 15:58:09 +0000 (08:58 -0700)
Fixes Coccinelle/coccicheck warnings reported by newline_in_nl_msg.cocci.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_devlink.c

index b516e42b41f0f42559645e0aa9720eedbc006b8f..3c3616f0f811eebf707f8e3c9f5cd61bb9671e63 100644 (file)
@@ -478,17 +478,17 @@ ice_devlink_reload_down(struct devlink *devlink, bool netns_change,
        case DEVLINK_RELOAD_ACTION_DRIVER_REINIT:
                if (ice_is_eswitch_mode_switchdev(pf)) {
                        NL_SET_ERR_MSG_MOD(extack,
-                                          "Go to legacy mode before doing reinit\n");
+                                          "Go to legacy mode before doing reinit");
                        return -EOPNOTSUPP;
                }
                if (ice_is_adq_active(pf)) {
                        NL_SET_ERR_MSG_MOD(extack,
-                                          "Turn off ADQ before doing reinit\n");
+                                          "Turn off ADQ before doing reinit");
                        return -EOPNOTSUPP;
                }
                if (ice_has_vfs(pf)) {
                        NL_SET_ERR_MSG_MOD(extack,
-                                          "Remove all VFs before doing reinit\n");
+                                          "Remove all VFs before doing reinit");
                        return -EOPNOTSUPP;
                }
                ice_devlink_reinit_down(pf);