diff --git a/gdal/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp b/gdal/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp index 5cb1e75311ba..ecee2c69951e 100644 --- a/gdal/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp +++ b/gdal/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp @@ -3851,8 +3851,6 @@ OGRFeature* OGROSMDataSource::GetNextFeature( OGRLayer** ppoBelongingLayer, poCurrentLayer = poNewCurLayer; if( poFeature == NULL) { - if( poCurrentLayer != NULL ) - continue; if( ppoBelongingLayer != NULL ) *ppoBelongingLayer = NULL; if( pdfProgressPct != NULL )