UBI: fix minor stylistic issues
Fix checkpatch.pl errors and warnings: * space before tab * line over 80 characters * include linux/ioctl.h instead of asm/ioctl.h Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
3627924acf
commit
feddbb34eb
|
@ -189,8 +189,8 @@ retry:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (retries++ < UBI_IO_RETRIES) {
|
if (retries++ < UBI_IO_RETRIES) {
|
||||||
dbg_io("error %d%s while reading %d bytes from PEB %d:%d,"
|
dbg_io("error %d%s while reading %d bytes from PEB "
|
||||||
" read only %zd bytes, retry",
|
"%d:%d, read only %zd bytes, retry",
|
||||||
err, errstr, len, pnum, offset, read);
|
err, errstr, len, pnum, offset, read);
|
||||||
yield();
|
yield();
|
||||||
goto retry;
|
goto retry;
|
||||||
|
|
|
@ -1103,7 +1103,7 @@ static int check_what_we_have(struct ubi_device *ubi, struct ubi_scan_info *si)
|
||||||
* otherwise, only print a warning.
|
* otherwise, only print a warning.
|
||||||
*/
|
*/
|
||||||
if (si->corr_peb_count >= max_corr) {
|
if (si->corr_peb_count >= max_corr) {
|
||||||
ubi_err("too many corrupted PEBs, refusing this device");
|
ubi_err("too many corrupted PEBs, refusing");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1570,7 +1570,8 @@ void ubi_wl_close(struct ubi_device *ubi)
|
||||||
* @ec: the erase counter to check
|
* @ec: the erase counter to check
|
||||||
*
|
*
|
||||||
* This function returns zero if the erase counter of physical eraseblock @pnum
|
* This function returns zero if the erase counter of physical eraseblock @pnum
|
||||||
* is equivalent to @ec, and a negative error code if not or if an error occurred.
|
* is equivalent to @ec, and a negative error code if not or if an error
|
||||||
|
* occurred.
|
||||||
*/
|
*/
|
||||||
static int paranoid_check_ec(struct ubi_device *ubi, int pnum, int ec)
|
static int paranoid_check_ec(struct ubi_device *ubi, int pnum, int ec)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#ifndef __LINUX_UBI_H__
|
#ifndef __LINUX_UBI_H__
|
||||||
#define __LINUX_UBI_H__
|
#define __LINUX_UBI_H__
|
||||||
|
|
||||||
#include <asm/ioctl.h>
|
#include <linux/ioctl.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <mtd/ubi-user.h>
|
#include <mtd/ubi-user.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue