Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
491e1ce6
Commit
491e1ce6
authored
Jul 14, 2002
by
James Mayer
Committed by
Linus Torvalds
Jul 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Typos in linux_drivers_mtd_devices_blkmtd.c
parent
f1ea31a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/mtd/devices/blkmtd.c
drivers/mtd/devices/blkmtd.c
+3
-3
No files found.
drivers/mtd/devices/blkmtd.c
View file @
491e1ce6
...
...
@@ -222,7 +222,7 @@ static int blkmtd_readpage(mtd_raw_dev_data_t *rawdevice, struct page *page)
return
err
;
}
/* Pre 2.4.4 doesnt have space for the block list in the kiobuf */
/* Pre 2.4.4 doesn
'
t have space for the block list in the kiobuf */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,4)
blocks
=
kmalloc
(
KIO_MAX_SECTORS
*
sizeof
(
unsigned
long
));
if
(
blocks
==
NULL
)
{
...
...
@@ -316,7 +316,7 @@ static int write_queue_task(void *data)
return
0
;
}
/* Pre 2.4.4 doesnt have space for the block list in the kiobuf */
/* Pre 2.4.4 doesn
'
t have space for the block list in the kiobuf */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,4)
blocks
=
kmalloc
(
KIO_MAX_SECTORS
*
sizeof
(
unsigned
long
));
if
(
blocks
==
NULL
)
{
...
...
@@ -355,7 +355,7 @@ static int write_queue_task(void *data)
int
sectorcnt
=
item
->
pagecnt
<<
(
PAGE_SHIFT
-
item
->
rawdevice
->
sector_bits
);
int
max_sectors
=
KIO_MAX_SECTORS
>>
(
item
->
rawdevice
->
sector_bits
-
9
);
/* If we are writing to the last page on the device and it doesnt end
/* If we are writing to the last page on the device and it doesn
'
t end
* on a page boundary, subtract the number of sectors that dont exist.
*/
if
(
item
->
rawdevice
->
partial_last_page
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment