fix ethernet driver remove function to use the correct annotation (#6311)