From d4c816abd89aa849d4de063bef772edc4caa6753 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 25 Apr 2017 13:23:55 +0200 Subject: [PATCH] crypto: Remove useless attribute There is no need of 2 level status reporting, returned code from synchronous call or the status code in the async callback should be enough to tell why it did not work. And this attribute is anyway unused anywhere. This helps to save 4 bytes, in total, out of struct cipher_pkt. (3 bytes were lurking around as the status attribute was only 1 byte). Change-Id: Iadfe20d6b84d57d86683bc86203ce2ed50e40461 Signed-off-by: Tomasz Bursztyka --- include/crypto/cipher_structs.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/crypto/cipher_structs.h b/include/crypto/cipher_structs.h index 61f1aa3737e..02772a2f64e 100644 --- a/include/crypto/cipher_structs.h +++ b/include/crypto/cipher_structs.h @@ -207,13 +207,6 @@ struct cipher_pkt { */ int out_len; - /* This this field contains additional crypto specific error code, - * in the event of a failure. The cipher_xxx_op()/ async_callback - * returns a first level success / failure status. To be populated - * by the driver on return from op / async_callback. - */ - u8_t status; - /* Context this packet relates to. This can be useful to get the * session details esp for async ops. Will be populated by the * cipher_xxx_op() API based on the ctx parameter