aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/openssl/openssl-qoriq/qoriq/0022-cryptodev-put_dev_crypto-should-be-an-int.patch
blob: eddb1f24f52440239735f93cba568ea318acb47a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 43710e60fd8bae1ebc4d1eef6d86cb4e82653ac4 Mon Sep 17 00:00:00 2001
From: Cristian Stoica <cristian.stoica@freescale.com>
Date: Thu, 19 Feb 2015 13:09:32 +0200
Subject: [PATCH 22/48] cryptodev: put_dev_crypto should be an int

Change-Id: Ie0a83bc07a37132286c098b17ef35d98de74b043
Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/34220
---
 crypto/engine/eng_cryptodev.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
index d7188a6..7b3dbd1 100644
--- a/crypto/engine/eng_cryptodev.c
+++ b/crypto/engine/eng_cryptodev.c
@@ -432,10 +432,12 @@ static int get_dev_crypto(void)
 # endif
 }
 
-static void put_dev_crypto(int fd)
+static int put_dev_crypto(int fd)
 {
-# ifndef CRIOGET_NOT_NEEDED
-    close(fd);
+#ifdef CRIOGET_NOT_NEEDED
+	return 0;
+#else
+	return close(fd);
 # endif
 }
 
-- 
2.7.3