Message ID | 171029433258.2063634.3143875873480142461.stgit@frogsfrogsfrogs (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [1/5] libxfs: remove the unused fs_topology_t typedef | expand |
diff --git a/libxfs/topology.c b/libxfs/topology.c index 8ae5f7483f96..3a659c2627c7 100644 --- a/libxfs/topology.c +++ b/libxfs/topology.c @@ -181,15 +181,6 @@ blkid_get_topology( { blkid_topology tp; blkid_probe pr; - struct stat statbuf; - - /* can't get topology info from a file */ - if (!stat(device, &statbuf) && S_ISREG(statbuf.st_mode)) { - fprintf(stderr, - _("%s: Warning: trying to probe topology of a file %s!\n"), - progname, device); - return; - } pr = blkid_new_probe_from_filename(device); if (!pr)