git: b85f7753dac5 - stable/15 - LinuxKPI: sg_page() remove superfluous ()

Bjoern A. Zeeb <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a66a205.25f22.74fe4d29__37614.3173825525$1785111298$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=b85f7753dac542664d68d44d4cf75674a3cba44f

commit b85f7753dac542664d68d44d4cf75674a3cba44f
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2026-07-17 12:26:13 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
CommitDate: 2026-07-26 16:48:49 +0000

    LinuxKPI: sg_page() remove superfluous ()
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D58295
    
    (cherry picked from commit fe1784004d6e43b3080ab7b7115ee0ea3ba317f2)
---
 sys/compat/linuxkpi/common/include/linux/scatterlist.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/scatterlist.h b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
index 0c2f8b62f9f5..1941e4a896e8 100644
--- a/sys/compat/linuxkpi/common/include/linux/scatterlist.h
+++ b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
@@ -135,7 +135,7 @@ sg_set_page(struct scatterlist *sg, struct page *page, unsigned int len,
 static inline struct page *
 sg_page(struct scatterlist *sg)
 {
-	return ((struct page *)((sg)->page_link & ~SG_PAGE_LINK_MASK));
+	return ((struct page *)(sg->page_link & ~SG_PAGE_LINK_MASK));
 }
 
 static inline void
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.