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

Commit d4150246 authored by Fabian Frederick's avatar Fabian Frederick Committed by John W. Linville
Browse files

drivers/net/wireless/rt2x00/rt2x00dev.c: remove null test before kfree



Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 55f8f680
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1455,7 +1455,6 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
	/*
	 * Free the driver data.
	 */
	if (rt2x00dev->drv_data)
	kfree(rt2x00dev->drv_data);
}
EXPORT_SYMBOL_GPL(rt2x00lib_remove_dev);