From 40fa7d4c2ee74f9d1f48498241fbca90a74e102e Mon Sep 17 00:00:00 2001 From: Patrick Siegl Date: Sun, 31 Mar 2019 23:34:28 +0200 Subject: [PATCH] Check for superuser not required --- software/libinfnoise.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/software/libinfnoise.c b/software/libinfnoise.c index d0af16b..a7168bc 100644 --- a/software/libinfnoise.c +++ b/software/libinfnoise.c @@ -214,11 +214,7 @@ infnoise_devlist_node_t* inf_get_devstrings(struct ftdi_context* ftdic, cur->description, sizeof(cur->description), cur->serial, sizeof(cur->serial)); if (rc < 0) { - if (!isSuperUser()) { - *message = "Can't find Infinite Noise Multiplier. Try running as super user?"; - } else { - sprintf(*message, "ftdi_usb_get_strings failed: %d (%s)", rc, ftdi_get_error_string(ftdic)); - } + sprintf(*message, "ftdi_usb_get_strings failed: %d (%s)", rc, ftdi_get_error_string(ftdic)); free( cur ); return NULL; }