From: Todor Minchev <todor.minchev@linux.intel.com>
To: yocto@yoctoproject.org, meta-intel@yoctoproject.org,
jianxun.zhang@linux.intel.com
Cc: Todor Minchev <todor.minchev@linux.intel.com>
Subject: [PATCH v2 4/5] rmc: remove unnecessary return variable
Date: Thu, 9 Feb 2017 11:17:39 -0800 [thread overview]
Message-ID: <20170209191740.63387-5-todor.minchev@linux.intel.com> (raw)
In-Reply-To: <20170209191740.63387-1-todor.minchev@linux.intel.com>
Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
---
src/rmc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/rmc.c b/src/rmc.c
index f3a2a5e..b5c7847 100644
--- a/src/rmc.c
+++ b/src/rmc.c
@@ -218,7 +218,6 @@ read_fp_done:
static rmc_file_t *read_policy_file(char *pathname, int type) {
rmc_file_t *tmp = NULL;
rmc_size_t policy_len = 0;
- int ret;
char *path_token;
if ((tmp = calloc(1, sizeof(rmc_file_t))) == NULL) {
@@ -230,8 +229,7 @@ static rmc_file_t *read_policy_file(char *pathname, int type) {
tmp->next = NULL;
if (type == RMC_GENERIC_FILE) {
- ret = read_file(pathname, (char **)&tmp->blob, &policy_len);
- if (ret) {
+ if (read_file(pathname, (char **)&tmp->blob, &policy_len)) {
fprintf(stderr, "Failed to read file %s\n\n", pathname);
free(tmp);
return NULL;
--
2.11.1
next prev parent reply other threads:[~2017-02-09 19:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 19:17 [PATCH v2 0/5] [meta-intel][rmc] Add fingerprint quering and database extraction functionality to RMC Todor Minchev
2017-02-09 19:17 ` [PATCH v2 1/5] Makefile: disable silent mode in Makefiles Todor Minchev
2017-02-10 18:40 ` Jianxun Zhang
2017-02-09 19:17 ` [PATCH v2 2/5] Makefile: add debug target Todor Minchev
2017-02-10 18:58 ` Jianxun Zhang
2017-02-14 17:33 ` Todor Minchev
2017-02-09 19:17 ` [PATCH v2 3/5] rmc: Enable reading the contents of an existing fingerprint file Todor Minchev
2017-02-10 19:21 ` Jianxun Zhang
2017-02-09 19:17 ` Todor Minchev [this message]
2017-02-10 19:22 ` [PATCH v2 4/5] rmc: remove unnecessary return variable Jianxun Zhang
2017-02-09 19:17 ` [PATCH v2 5/5] rmc: add database extraction functionality Todor Minchev
2017-02-10 19:52 ` Jianxun Zhang
2017-02-14 17:50 ` Todor Minchev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170209191740.63387-5-todor.minchev@linux.intel.com \
--to=todor.minchev@linux.intel.com \
--cc=jianxun.zhang@linux.intel.com \
--cc=meta-intel@yoctoproject.org \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.