]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: axis-fifo: Remove unnecessary zero-length packet check
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Sat, 27 Dec 2025 21:26:37 +0000 (23:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 12:54:12 +0000 (13:54 +0100)
commitab517a047b4ef6b62e4ddabfdd3549f19e4bc4c9
tree25a08dc88747556f1a689aa5ef07d2f27deedbe7
parenteb757312ac1743e9b54b070f6cdc4b32bbe0c8ef
staging: axis-fifo: Remove unnecessary zero-length packet check

Remove the check for zero-length packets as this condition cannot
occur during normal operation. According to the Xilinx AXI4-Stream
FIFO Product Guide (PG080), in the Receive Length Register (RLR)
description: "The smallest packet that can be received is 1 byte."

A zero-length packet would indicate a bug in the IP core itself.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Link: https://patch.msgid.link/20251227212640.3321310-6-ovidiu.panait.oss@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c