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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
212cd08953
commit
f7b5964d4d
|
@ -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);
|
||||
|
||||
vfree(epbh->buffer);
|
||||
epbh->buffer = NULL;
|
||||
epbh->size = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue