Commit: 952eb43f029eda7fd1650dc5751c108f246d61f9
Parent: faa1f74a91e95d04b66a9350a3daf9b35ec63070
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2020-12-04 20:07:30
Tree: 2861fb90b5a29bfe46a61dcc6828f58f085bd3f1

mesh: Fix check for mkdir return value in keyring.c Remove check for mkdir() return value, since checking for zero does not cover "already exists" condition and adding extra check for errno value unnecessarily complicates the code. If mkdir() fails due to any reason than "already exists", the subsequent call to open() fails and the error is detected and corectly processed by the code.

Diffstat

M mesh/keyring.c | 9 +++- - - - - -

1 files changed, 3 insertions(+), 6 deletions(-)

View Full Diff | Patch