mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
scst: Remove three superfluous unlikely() annotations
This was detected by checkpatch. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+3
-3
@@ -8294,7 +8294,7 @@ static struct request *__blk_map_kern_sg(struct request_queue *q,
|
||||
}
|
||||
|
||||
rq = blk_make_request(q, hbio, gfp_mask);
|
||||
if (unlikely(IS_ERR(rq)))
|
||||
if (IS_ERR(rq))
|
||||
goto out_free_bios;
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)
|
||||
@@ -8371,11 +8371,11 @@ static struct request *blk_map_kern_sg(struct request_queue *q,
|
||||
}
|
||||
|
||||
rq = __blk_map_kern_sg(q, sgl, nents, NULL, gfp, reading);
|
||||
if (unlikely(IS_ERR(rq))) {
|
||||
if (IS_ERR(rq)) {
|
||||
struct blk_kern_sg_work *bw;
|
||||
|
||||
bw = blk_copy_kern_sg(q, sgl, nents, gfp, reading);
|
||||
if (unlikely(IS_ERR(bw))) {
|
||||
if (IS_ERR(bw)) {
|
||||
rq = ERR_PTR(PTR_ERR(bw));
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user