[PATCH openEuler-5.10 105/120] net: dsa: properly check for the bridge_leave methods in dsa_switch_bridge_leave()