public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Missed a page_address cleanup
@ 2001-07-15 23:48 Daniel Phillips
  0 siblings, 0 replies; only message in thread
From: Daniel Phillips @ 2001-07-15 23:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds, Alan Cox, Alexander Viro

Cleans up one instance of (char *) page_address that was missed in
the recent round of cleanups.

--- 2.4.6.clean/fs/ext2/dir.c	Wed Jun 20 20:40:14 2001
+++ 2.4.6/fs/ext2/dir.c	Sun Jul 15 23:03:41 2001
@@ -363,7 +363,7 @@
 void ext2_set_link(struct inode *dir, struct ext2_dir_entry_2 *de,
 			struct page *page, struct inode *inode)
 {
-	unsigned from = (char *)de-(char*)page_address(page);
+	unsigned from = (char *) de - page_address(page);
 	unsigned to = from + le16_to_cpu(de->rec_len);
 	int err;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-15 23:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-15 23:48 [PATCH] Missed a page_address cleanup Daniel Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox