From ba5a40d66422fbf9689a98c08a205200a1b47ac3 Mon Sep 17 00:00:00 2001 From: LABBE Corentin Date: Sat, 19 Jul 2014 19:34:40 +0200 Subject: [PATCH] staging: sep: No else is necessary after a break (reported by checkpatch) Signed-off-by: LABBE Corentin Signed-off-by: Greg Kroah-Hartman --- drivers/staging/sep/sep_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sep/sep_main.c b/drivers/staging/sep/sep_main.c index 75ca15e86a27..5188897e9267 100644 --- a/drivers/staging/sep/sep_main.c +++ b/drivers/staging/sep/sep_main.c @@ -2880,12 +2880,11 @@ static int sep_free_dma_tables_and_dcb(struct sep_device *sep, bool isapplet, if (is_kva) { error = -ENODEV; break; - } else { - error_temp = copy_to_user( + } + error_temp = copy_to_user( (void __user *)tail_pt, dcb_table_ptr->tail_data, dcb_table_ptr->tail_data_size); - } if (error_temp) { /* Release the DMA resource */ error = -EFAULT; -- 2.39.5