B&N 2Q loss in line with guidance