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:
Родитель
7e4290c6db
Коммит
ebca68f69d
|
@ -152,7 +152,7 @@ void squirt(int req_type, int bdid, struct image_info *ii)
|
|||
goto squirt_end;
|
||||
}
|
||||
|
||||
ii->len = sb.st_size ;
|
||||
ii->len = sb.st_size;
|
||||
}
|
||||
|
||||
size_buf = ii->len + sizeof(struct downldio);
|
||||
|
@ -214,8 +214,8 @@ squirt_end:
|
|||
*/
|
||||
void consider_file_rescan(struct image_info *ii)
|
||||
{
|
||||
int sfd ;
|
||||
int len ;
|
||||
int sfd;
|
||||
int len;
|
||||
struct stat sb;
|
||||
|
||||
/* 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))
|
||||
goto end_rescan;
|
||||
|
||||
ii->len = len = sb.st_size ;
|
||||
ii->len = len = sb.st_size;
|
||||
|
||||
/* Record the timestamp of the file */
|
||||
ii->mtime = sb.st_mtime;
|
||||
|
@ -284,8 +284,8 @@ end_rescan:
|
|||
|
||||
struct image_info * find_conc_image()
|
||||
{
|
||||
int x ;
|
||||
struct image_info *i = NULL ;
|
||||
int x;
|
||||
struct image_info *i = NULL;
|
||||
|
||||
for ( x = 0; x < nimages; 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 ))
|
||||
return i;
|
||||
}
|
||||
return NULL ;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -390,7 +390,7 @@ int main(int argc, char **argv)
|
|||
nimages += count;
|
||||
|
||||
/* Really should just remove the variable "image_list".... robertl */
|
||||
image_list = images ;
|
||||
image_list = images;
|
||||
|
||||
/* get the images from the command line */
|
||||
for(x = 2; x < argc; x++) {
|
||||
|
@ -411,7 +411,7 @@ int main(int argc, char **argv)
|
|||
|
||||
/* image should be NULL until */
|
||||
/* 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->image) {
|
||||
free(ii->image);
|
||||
ii->image = NULL ;
|
||||
ii->image = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче