@@ -430,20 +430,15 @@ int shim_do_ioctl (int fd, int cmd, unsigned long arg)
break;
size = stat.st_size;
- goto done_fioread;
- }
-
- if (hdl->pal_handle) {
+ } else if (hdl->pal_handle) {
PAL_STREAM_ATTR attr;
if (!DkStreamAttributesQueryByHandle(hdl->pal_handle, &attr)) {
ret = -PAL_ERRNO;
}
size = attr.pending_size;
-done_fioread:
if (fs->fs_ops->seek) {
ret = fs->fs_ops->seek(hdl, 0, SEEK_CUR);
if (ret < 0)