@@ -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);
}
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(-)