Skip to contentSkip to conversation

staging: bcm: use SEEK_SET instead of 0 in vfs_llseek

PATCH In review Vivek Trivedi 2 participants 2 messages Jul 24, 2012 – Jul 25, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: bcm: use SEEK_SET instead of 0 in vfs_llseek

They're equivalent, but SEEK_SET seems more informative...

---
 drivers/staging/bcm/Misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/bcm/Misc.c +1 -1
index 8223a69..8fab3ec 100644
@@ -203,7 +203,7 @@ static int BcmFileDownload(PMINI_ADAPTER Adapter, const char *path, unsigned int
 	}
 	oldfs = get_fs();
 	set_fs(get_ds());
-	vfs_llseek(flp, 0, 0);
+	vfs_llseek(flp, 0, SEEK_SET);
 	set_fs(oldfs);
 	if (Adapter->bcm_file_readback_from_chip(Adapter->pvInterfaceAdapter, flp, loc)) {
 		BCM_DEBUG_PRINT(Adapter, DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "Failed to read back firmware!");
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Vivek Trivedi

They're equivalent, but SEEK_SET seems more informative...

---
 drivers/staging/bcm/Misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/bcm/Misc.c +0 -0
index 8223a69..8fab3ec 100644

drivers/staging/bcm/Misc.c static int BcmFileDownload(PMINI_ADAPTER Adapter, const char *path, unsigned int · line 206

Quoted 5 lines
drivers/staging/bcm/Misc.c +1 -1
@@ -203,7 +203,7 @@ static int BcmFileDownload(PMINI_ADAPTER Adapter, const char *path, unsigned int
 	}
 	oldfs = get_fs();
 	set_fs(get_ds());
-	vfs_llseek(flp, 0, 0);
+	vfs_llseek(flp, 0, SEEK_SET);