sa_log_output_exit() is just a wrapper that calls exit().

This patch removes the wrapper and all previous callers just
call exit().

Signed-off-by: Robert Love <[email protected]>
---

 fcoemon_utils.c |    6 ------
 fcoemon_utils.h |    5 ++---
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/fcoemon_utils.c b/fcoemon_utils.c
index ab36240..bebe014 100644
--- a/fcoemon_utils.c
+++ b/fcoemon_utils.c
@@ -198,12 +198,6 @@ sa_log_abort(const char *buf)
        abort();
 }
 
-void
-sa_log_output_exit(const char *buf)
-{
-       exit(1);
-}
-
 /*
  * Make a printable NUL-terminated copy of the string.
  * The source buffer might not be NUL-terminated.
diff --git a/fcoemon_utils.h b/fcoemon_utils.h
index f154c77..ede607d 100644
--- a/fcoemon_utils.h
+++ b/fcoemon_utils.h
@@ -49,7 +49,6 @@ void sa_log_err(int, const char *func, const char *format, 
...);
  */
 void sa_log_output(const char *);      /* log message */
 void sa_log_abort(const char *);       /* log message and abort */
-void sa_log_output_exit(const char *); /* log message and exit */
 
 #define __SA_STRING(x)  #x
 
@@ -74,7 +73,7 @@ void sa_log_output_exit(const char *);        /* log message 
and exit */
                sa_log_func(__func__, __VA_ARGS__);                     \
                sa_log_func(__func__, "exiting at %s:%d",               \
                        __FILE__, __LINE__);                            \
-               sa_log_output_exit(__func__);                           \
+               exit(1);                                                \
        } while (0)
 
 #define SA_LOG_ERR_EXIT(error, ...) \
@@ -82,7 +81,7 @@ void sa_log_output_exit(const char *);        /* log message 
and exit */
                sa_log_func(__func__, __VA_ARGS__);                     \
                sa_log_err(error, __func__, "exiting at %s:%d",         \
                        __FILE__, __LINE__);                            \
-               sa_log_output_exit(__func__);                           \
+               exit(1);                                                \
        } while (0)
 
 /*

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to