diff mbox

[v2] libibverbs init.c: remove stderr warnings if no userspace driver found

Message ID 1431377021-27932-1-git-send-email-jsquyres@cisco.com (mailing list archive)
State Superseded, archived
Delegated to: Doug Ledford
Headers show

Commit Message

Jeff Squyres May 11, 2015, 8:43 p.m. UTC
Also the statically_linked variable, since it was only used when
printing the stderr warning.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
---
 src/init.c | 9 ---------
 1 file changed, 9 deletions(-)
diff mbox

Patch

diff --git a/src/init.c b/src/init.c
index d0e4b1c..190608a 100644
--- a/src/init.c
+++ b/src/init.c
@@ -484,7 +484,6 @@  HIDDEN int ibverbs_init(struct ibv_device ***list)
 	struct ibv_device *device;
 	int num_devices = 0;
 	int list_size = 0;
-	int statically_linked = 0;
 	int no_driver = 0;
 	int ret;
 
@@ -537,7 +536,6 @@  HIDDEN int ibverbs_init(struct ibv_device ***list)
 		if (!hand) {
 			fprintf(stderr, PFX "Warning: dlopen(NULL) failed, "
 				"assuming static linking.\n");
-			statically_linked = 1;
 			goto out;
 		}
 		dlclose(hand);
@@ -561,13 +559,6 @@  out:
 		     next_dev = sysfs_dev ? sysfs_dev->next : NULL;
 	     sysfs_dev;
 	     sysfs_dev = next_dev, next_dev = sysfs_dev ? sysfs_dev->next : NULL) {
-		if (!sysfs_dev->have_driver) {
-			fprintf(stderr, PFX "Warning: no userspace device-specific "
-				"driver found for %s\n", sysfs_dev->sysfs_path);
-			if (statically_linked)
-				fprintf(stderr, "	When linking libibverbs statically, "
-					"driver must be statically linked too.\n");
-		}
 		free(sysfs_dev);
 	}