summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLABBE Corentin <clabbe.montjoie@gmail.com>2014-07-19 19:34:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-21 12:19:23 -0700
commitba5a40d66422fbf9689a98c08a205200a1b47ac3 (patch)
treeda7a90487ad0d791c2f5afb3a38505ffad67d8db
parentcca48e3ce4ab73a05a53a862b091dccdc41e35dd (diff)
downloadop-kernel-dev-ba5a40d66422fbf9689a98c08a205200a1b47ac3.zip
op-kernel-dev-ba5a40d66422fbf9689a98c08a205200a1b47ac3.tar.gz
staging: sep: No else is necessary after a break (reported by checkpatch)
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/sep/sep_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/sep/sep_main.c b/drivers/staging/sep/sep_main.c
index 75ca15e..5188897 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;
OpenPOWER on IntegriCloud