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

Commit f7b5964d authored by Markus Elfring's avatar Markus Elfring Committed by David S. Miller
Browse files

fjes: Delete an unnecessary check before the function call "vfree"



The vfree() function performs also input parameter validation.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 212cd089
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -143,9 +143,7 @@ static int fjes_hw_alloc_epbuf(struct epbuf_handler *epbh)

static void fjes_hw_free_epbuf(struct epbuf_handler *epbh)
{
	if (epbh->buffer)
	vfree(epbh->buffer);

	epbh->buffer = NULL;
	epbh->size = 0;