]> code.ossystems Code Review - meta-freescale.git/blob
121123d63ec2c843618b16a3fdad09f8115a370b
[meta-freescale.git] /
1 From 79d6976e2ad2e5ac31374bc24ee29ae53f55c0e1 Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@freescale.com>
3 Date: Thu, 19 Feb 2015 13:09:32 +0200
4 Subject: [PATCH 22/48] cryptodev: put_dev_crypto should be an int
5
6 Change-Id: Ie0a83bc07a37132286c098b17ef35d98de74b043
7 Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
8 Reviewed-on: http://git.am.freescale.net:8181/34220
9 ---
10  crypto/engine/eng_cryptodev.c | 8 +++++---
11  1 file changed, 5 insertions(+), 3 deletions(-)
12
13 diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
14 index 75fca7f..b162646 100644
15 --- a/crypto/engine/eng_cryptodev.c
16 +++ b/crypto/engine/eng_cryptodev.c
17 @@ -431,10 +431,12 @@ static int get_dev_crypto(void)
18  # endif
19  }
20  
21 -static void put_dev_crypto(int fd)
22 +static int put_dev_crypto(int fd)
23  {
24 -# ifndef CRIOGET_NOT_NEEDED
25 -    close(fd);
26 +#ifdef CRIOGET_NOT_NEEDED
27 +       return 0;
28 +#else
29 +       return close(fd);
30  # endif
31  }
32  
33 -- 
34 2.7.0
35