Re: [PATCH] bluetooth: kill redundant NULL checks and casts before kfree

From: Alexey Dobriyan
Date: Tue May 10 2005 - 14:27:14 EST


On Tuesday 10 May 2005 23:05, Jesper Juhl wrote:

> There's no need to check for NULL before calling kfree() on a pointer, and
> since kfree() takes a void* argument there's no need to cast pointers to
> other types before passing them to kfree().

> + kfree(hdev->driver_data)

This won't compile.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/