Skip to content

Commit 3194067

Browse files
committed
dmaengine: sdxi: descriptor: sdxi_desc_vl_expect() tweaks
Should be static inline... Make the second parameter bool; it's nonsensical and a potential source of bugs to allow callers to pass anything other than 0 or 1. Signed-off-by: Nathan Lynch <nathan.lynch@amd.com>
1 parent 1832c2f commit 3194067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma/sdxi/descriptor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
int __must_check sdxi_encode_size32(u64 size, __le32 *dest);
2626
#endif
2727

28-
static void sdxi_desc_vl_expect(const struct sdxi_desc *desc, u8 expected)
28+
static inline void sdxi_desc_vl_expect(const struct sdxi_desc *desc, bool expected)
2929
{
3030
u8 vl = FIELD_GET(SDXI_DSC_VL, le32_to_cpu(desc->opcode));
3131

0 commit comments

Comments
 (0)