splice: only check do_wakeup in splice_to_pipe() for a real pipe

We only ever set do_wakeup to non-zero if the pipe has an inode
backing, so it's pointless to check outside the pipe->inode
check.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

+7 -6
+7 -6
fs/splice.c
··· 245 245 pipe->waiting_writers--; 246 246 } 247 247 248 - if (pipe->inode) 248 + if (pipe->inode) { 249 249 mutex_unlock(&pipe->inode->i_mutex); 250 250 251 - if (do_wakeup) { 252 - smp_mb(); 253 - if (waitqueue_active(&pipe->wait)) 254 - wake_up_interruptible(&pipe->wait); 255 - kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); 251 + if (do_wakeup) { 252 + smp_mb(); 253 + if (waitqueue_active(&pipe->wait)) 254 + wake_up_interruptible(&pipe->wait); 255 + kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); 256 + } 256 257 } 257 258 258 259 while (page_nr < spd_pages)