logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0005-Remove-unused-variable.patch (1096B)


  1. From 2cc852e07038ee17d56ec6a54ae9b1c19b598289 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Thu, 21 Feb 2019 23:57:15 -0800
  4. Subject: [PATCH] Remove unused variable
  5. ---
  6. perp/perpd_svdef.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/perp/perpd_svdef.c b/perp/perpd_svdef.c
  9. index 82fb0a0..7b5e87f 100644
  10. --- a/perp/perpd_svdef.c
  11. +++ b/perp/perpd_svdef.c
  12. @@ -186,7 +186,7 @@ void
  13. perpd_svdef_checkfail(struct svdef *svdef)
  14. {
  15. struct subsv *subsv;
  16. - int target, r = 0;
  17. + int target;
  18. /* insanity? */
  19. if(!(svdef->bitflags & SVDEF_FLAG_ACTIVE))
  20. @@ -201,7 +201,7 @@ perpd_svdef_checkfail(struct svdef *svdef)
  21. subsv = (svdef->bitflags & SVDEF_FLAG_HASLOG) ? &svdef->svpair[SUBSV_LOG] : NULL;
  22. if((subsv != NULL) && (subsv->bitflags & SUBSV_FLAG_FAILING)){
  23. target = (subsv->bitflags & SUBSV_FLAG_ISRESET) ? SVRUN_RESET : SVRUN_START;
  24. - r = perpd_svdef_run(svdef, SUBSV_LOG, target);
  25. + perpd_svdef_run(svdef, SUBSV_LOG, target);
  26. }
  27. /* XXX, bail here if log is failing? */
  28. --
  29. 2.20.1