Commit ebca68f6 authored by Masanari Iida's avatar Masanari Iida Committed by Greg Kroah-Hartman

staging: dgap: Fix trailing whitespace in downld.c

This patch fix "ERROR: trailing whitespace found by
checkpatch.pl, whithin downld.c
Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e4290c6
...@@ -152,7 +152,7 @@ void squirt(int req_type, int bdid, struct image_info *ii) ...@@ -152,7 +152,7 @@ void squirt(int req_type, int bdid, struct image_info *ii)
goto squirt_end; goto squirt_end;
} }
ii->len = sb.st_size ; ii->len = sb.st_size;
} }
size_buf = ii->len + sizeof(struct downldio); size_buf = ii->len + sizeof(struct downldio);
...@@ -214,8 +214,8 @@ void squirt(int req_type, int bdid, struct image_info *ii) ...@@ -214,8 +214,8 @@ void squirt(int req_type, int bdid, struct image_info *ii)
*/ */
void consider_file_rescan(struct image_info *ii) void consider_file_rescan(struct image_info *ii)
{ {
int sfd ; int sfd;
int len ; int len;
struct stat sb; struct stat sb;
/* This operation only makes sense when we're working from a file */ /* This operation only makes sense when we're working from a file */
...@@ -239,7 +239,7 @@ void consider_file_rescan(struct image_info *ii) ...@@ -239,7 +239,7 @@ void consider_file_rescan(struct image_info *ii)
if (ii->image && (sb.st_mtime == ii->mtime)) if (ii->image && (sb.st_mtime == ii->mtime))
goto end_rescan; goto end_rescan;
ii->len = len = sb.st_size ; ii->len = len = sb.st_size;
/* Record the timestamp of the file */ /* Record the timestamp of the file */
ii->mtime = sb.st_mtime; ii->mtime = sb.st_mtime;
...@@ -284,8 +284,8 @@ void consider_file_rescan(struct image_info *ii) ...@@ -284,8 +284,8 @@ void consider_file_rescan(struct image_info *ii)
struct image_info * find_conc_image() struct image_info * find_conc_image()
{ {
int x ; int x;
struct image_info *i = NULL ; struct image_info *i = NULL;
for ( x = 0; x < nimages; x++ ) { for ( x = 0; x < nimages; x++ ) {
i=&image_list[x]; i=&image_list[x];
...@@ -306,7 +306,7 @@ struct image_info * find_conc_image() ...@@ -306,7 +306,7 @@ struct image_info * find_conc_image()
if ((dp->dl_type != 'P' ) && ( ip->dl_srev == dp->dl_srev )) if ((dp->dl_type != 'P' ) && ( ip->dl_srev == dp->dl_srev ))
return i; return i;
} }
return NULL ; return NULL;
} }
...@@ -390,7 +390,7 @@ int main(int argc, char **argv) ...@@ -390,7 +390,7 @@ int main(int argc, char **argv)
nimages += count; nimages += count;
/* Really should just remove the variable "image_list".... robertl */ /* Really should just remove the variable "image_list".... robertl */
image_list = images ; image_list = images;
/* get the images from the command line */ /* get the images from the command line */
for(x = 2; x < argc; x++) { for(x = 2; x < argc; x++) {
...@@ -411,7 +411,7 @@ int main(int argc, char **argv) ...@@ -411,7 +411,7 @@ int main(int argc, char **argv)
/* image should be NULL until */ /* image should be NULL until */
/* space is malloced */ /* space is malloced */
images[xx].image = NULL ; images[xx].image = NULL;
} }
} }
} }
...@@ -755,7 +755,7 @@ int main(int argc, char **argv) ...@@ -755,7 +755,7 @@ int main(int argc, char **argv)
if (ii->pathname) if (ii->pathname)
if (ii->image) { if (ii->image) {
free(ii->image); free(ii->image);
ii->image = NULL ; ii->image = NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment