Skip to content

Commit 39748a3

Browse files
jannaumarcan
authored andcommitted
fixup! media: apple: isp: VMap only what is necessary, remove redundant logging state bit
Fixes following compile warning: isp-ipc.c:267:2: warning: label at end of compound statement is a C2x extension [-Wc2x-extensions] Signed-off-by: Janne Grunau <[email protected]>
1 parent 7ffd3b4 commit 39748a3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/media/platform/apple/isp/isp-ipc.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,15 @@ int ipc_sm_handle(struct apple_isp *isp, struct isp_channel *chan)
253253
isp->bt_surf = surf;
254254
break;
255255
default:
256-
goto skip_vmap;
256+
// skip vmap
257+
return 0;
257258
}
258259

259260
err = isp_surf_vmap(isp, surf);
260261
if (err < 0) {
261262
isp_err(isp, "failed to vmap iova=0x%llx size=0x%llx\n",
262263
surf->iova, surf->size);
263264
}
264-
skip_vmap:
265-
/* To the gc it goes... */
266-
267265
} else {
268266
/* This should be the shared surface free request, but
269267
* 1) The fw doesn't request to free all of what it requested

0 commit comments

Comments
 (0)