Skip to content

Commit 538b525

Browse files
thugheskartben
authored andcommitted
drivers: dma: Remove unused function
Building with clang warns: drivers/dma/dma_emul.c:73:20: error: unused function 'dma_emul_xfer_is_error_status' [-Werror,-Wunused-function] static inline bool dma_emul_xfer_is_error_status(int status) ^ Signed-off-by: Tom Hughes <tomhughes@chromium.org>
1 parent 782152f commit 538b525

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/dma/dma_emul.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ static void dma_emul_work_handler(struct k_work *work);
7070

7171
LOG_MODULE_REGISTER(dma_emul, CONFIG_DMA_LOG_LEVEL);
7272

73-
static inline bool dma_emul_xfer_is_error_status(int status)
74-
{
75-
return status < 0;
76-
}
77-
7873
static inline const char *const dma_emul_channel_state_to_string(enum dma_emul_channel_state state)
7974
{
8075
switch (state) {

0 commit comments

Comments
 (0)