staging: dgap: Fix trailing whitespace in downld.c

This patch fix "ERROR: trailing whitespace found by
checkpatch.pl, whithin downld.c

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Masanari Iida 2013-12-19 01:19:39 +09:00 committed by Greg Kroah-Hartman
parent 7e4290c6db
commit ebca68f69d

View File

@ -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 @@ squirt_end:
*/ */
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)
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 @@ end_rescan:
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()
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)
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)
/* 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)
if (ii->pathname) if (ii->pathname)
if (ii->image) { if (ii->image) {
free(ii->image); free(ii->image);
ii->image = NULL ; ii->image = NULL;
} }
} }